![]() |
SetControlViewSize |
||||
Header: | Controls.h | Carbon status: | Supported | |
Informs the Control Manager of the size of the content to which a controls size is proportioned.
void SetControlViewSize ( ControlRef theControl, SInt32 newViewSize );
A handle to the control whose view size is to be set.
A value specifying the size of the content being displayed. This value should be expressed in terms of the same units of measurement as are used for the minimum, maximum, and current settings of the control.
Your application should call the SetControlViewSize function to support proportional scroll boxes. If the user selects the systemwide Appearance preference for proportional scroll boxes and your application doesnt call SetControlViewSize, it will still have the traditional square scroll boxes.
To support a proportional scroll box, simply pass the size of the view areain terms of whatever units the scroll bar usesto SetControlViewSize. The system automatically handles resizing the scroll box, once your application supplies this information.
This function is available with Mac OS 8.5 and later.
Supported in Carbon. Available in Mac OS 8.5 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)