[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Scales values for all child controls.
Source position: controls.pp line 2202
protected procedure TWinControl.ScaleControls( |
Multiplier: Integer; |
Divider: Integer |
); virtual; |
Multiplier |
|
Multiplier applied to a value to achieve a scaling factor. |
Divider |
|
Divisor applied to a value to achieve a scaling factor. |
ScaleControls is a method used to scale the child controls in the Controls property using the specified multiplier and divisor. ScaleControls visits each of the class instances in Controls and calls its ChangeScale method using Multiplier and Divider as arguments.
ScaleControls is called from the overridden ChangeScale method. This causes all controls in the hierarchy to apply the scaling factor to values in their Constraints, Font, Left, Top, Right and Bottom properties. For top-level Forms, the values in Left and Top are not scaled.
|
Scales (resizes) the control and all of its child controls. |
|
|
Applies scaling (multiplier and divider) to the bounds coordinates, constraints, and Font in a control. |
|
|
Update the rules for anchoring the control. |
Version 3.2 | Generated 2024-02-25 | Home |