[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Applies scaling (multiplier and divider) to the bounds coordinates, constraints, and Font in a control.
Source position: controls.pp line 1326
protected procedure TControl.ChangeScale( |
Multiplier: Integer; |
Divider: Integer |
); virtual; |
Multiplier |
|
Multiplicand used to calculate the scaled numeric values. |
Divider |
|
Divisor used to calculate the scaled numeric values. |
ChangeScale is amethod used to apply scaling, expressed by the Multiplier and Divider arguments, to size values in the control. These values include:
ChangeScale calls the MulDiv routine in the LCLType unit to calculate the scaled numeric values. The results from the calculations are rounded and returned as an Integer type.
No actions are performed in the method when Multiplier and Divider have the same value.
ChangeScale can be overridden in descendent classes to perform any additional action needed for the class type.
ChangeScale is called from the ScaleControls and ScaleBy methods in the TWinControl descendant.
|
The rectangle of the designed bounds. |
|
|
The TopLeft and BottomRight of the control, in client coordinates. |
|
|
The font to be used for text display in this control. |
|
|
If true, the Font of the control will be the same as the one from the Parent. Default is true. |
|
|
Scales the minimum and maximum Width and Height. |
|
|
Scales (resizes) the control and all of its child controls. |
|
|
Scales (resizes) all child controls. |
|
|
Multiples the numerator by the specified Integer value, and divides the result by the denominator value. |
lazarus-ccr.sourceforge.net |