Important: The information in this document is obsolete and should not be used for new development.
GetControlAction
To get a pointer to the action procedure stored in thecontrlActionfield
of the control's control record, use theGetControlActionfunction. TheGetControlActionfunction is also available as theGetCtlActionfunction.
FUNCTION GetControlAction (theControl: ControlHandle): ProcPtr;
theControl- A handle to a control.
DESCRIPTION
TheGetControlActionfunction returns as its function result whatever value is
stored in thecontrlActionfield of the control's control record. This field specifies
the action procedure thatTrackControluses if you set itsactionProcparameter toPointer(-1). The action procedure should define an action to take in response to the user's holding down the mouse button while the cursor is in the control. You can use
theSetControlActionprocedure to change this action procedure.SEE ALSO
For information about defining an action procedure, see "Defining Your Own Action Procedures" beginning on page 5-109.