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 / Changing Control Settings and Display


SetControlMinimum

To change the minimum setting of a control and redraw its indicator or scroll box accordingly, you can use the SetControlMinimum procedure. The SetControlMinimum procedure is also available as the SetCtlMin procedure.

PROCEDURE SetControlMinimum (theControl: ControlHandle; 
                             minValue: Integer);
theControl
A handle to the control whose minimum setting you wish to change.
minValue
The new minimum setting.
DESCRIPTION
The SetControlMinimum procedure changes the contrlMin field of the control record to the setting you specify in the minValue parameter and redraws its indicator
or scroll box to reflect its new range.

When you create a control, you specify an initial minimum setting either in the control resource or in the min parameter of the NewControl function. To determine a control's current minimum setting, use the GetControlMinimum function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996