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 thecontrlAction
field
of the control's control record, use theGetControlAction
function. TheGetControlAction
function is also available as theGetCtlAction
function.
FUNCTION GetControlAction (theControl: ControlHandle): ProcPtr;
theControl
- A handle to a control.
DESCRIPTION
TheGetControlAction
function returns as its function result whatever value is
stored in thecontrlAction
field of the control's control record. This field specifies
the action procedure thatTrackControl
uses if you set itsactionProc
parameter 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
theSetControlAction
procedure 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.