Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 5 - Control Manager / Control Manager Reference
Control Manager Routines / Determining Control Values


GetControlAction

To get a pointer to the action procedure stored in the contrlAction field
of the control's control record, use the GetControlAction function. The GetControlAction function is also available as the GetCtlAction function.

FUNCTION GetControlAction (theControl: ControlHandle): ProcPtr;
theControl
A handle to a control.
DESCRIPTION
The GetControlAction function returns as its function result whatever value is
stored in the contrlAction field of the control's control record. This field specifies
the action procedure that TrackControl uses if you set its actionProc parameter to Pointer(-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
the SetControlAction 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996