[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Adjusts width and height values in the class using the specified scaling factors.
Source position: controls.pp line 736
public procedure TSizeConstraints.AutoAdjustLayout( |
const AXProportion: Double; |
const AYProportion: Double |
); |
AXProportion |
|
Scaling factor applied to width values. |
AYProportion |
|
Scaling factor applied to height values. |
AutoAdjustLayout ensures that assigned (non-zero) values in MinHeight, MaxHeight, MinWidth, and MaxWidth are scaled by the corresponding scaling factor. If any of the property values are scaled, the Change method is called to notify the associated Control that it should adjust it size. The OnChange event is signalled (when assigned).
AutoAdjustLayout is called from the DoAutoAdjustLayout method in Control, and occurs after values in BorderSpacing have been scaled. It occurs before the new height and width for the Control are calculated and applied to its BaseBounds.
|
The maximum height for the associated Control. |
|
|
The maximum width for the associated Control. |
|
|
The minimum height for the associated Control. |
|
|
The minimum width for the associated Control. |
|
|
The associated Control to which these constraints apply. |
|
|
Adjusts the size for the associated Control, and signals the OnChange handler when assigned. |
|
|
Performs actions needed when value(s) in Constraints have been changed. |
|
|
Applies layout changes using the specified policy and scaling proportions to the control. |
|
|
Determines the inner and outer border spacing for this control. |
|
|
Smart way to DoAutoSize. |
|
|
The rectangle with the designed bounds for the control. |
Version 4.0 | Generated 2025-05-03 | Home |