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


GetControlMaximum

To determine a control's maximum setting, use the GetControlMaximum function. The GetControlMaximum function is also available as the GetCtlMax function.

FUNCTION GetControlMaximum (theControl: ControlHandle): Integer;
theControl
A handle to the control whose maximum value you wish to determine.
DESCRIPTION
The GetControlMaximum function returns as its function result the specified control's maximum setting, which is stored in the contrlMax field of the control record.

When you create a control, you specify an initial maximum setting either in the control resource or in the max parameter of the NewControl function. You can change the maximum setting by using the SetControlMaximum procedure.

SEE ALSO
Listing 5-16 on page 5-38 and Listing 5-20 on page 5-56 illustrate the use of GetControlMaximum for determining the maximum scrolling distance of a scroll bar.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996