[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Applies size and layout changes to the design surface and its Parent control.
Source position: forms.pp line 302
protected procedure TCustomDesignControl.DoAutoAdjustLayout( |
const AMode: TLayoutAdjustmentPolicy; |
const AXProportion: Double; |
const AYProportion: Double |
); override; |
AMode |
|
TLayoutAdjustmentPolicy applied in the method. |
AXProportion |
|
Horizontal scaling factor applied in the method. |
AYProportion |
|
Vertical scaling factor applied in the method. |
DoAutoAdjustLayout is a procedure used to perform actions needed to apply size and layout changes to the design surface and its Parent control.
DoAutoAdjustLayout adjusts the height and width for the design surface by the specified scaling factors. Similarly, the BorderSpacing and Constraints in the control are adjusted using the scaling factors. Finally, the SetBounds method is called to apply the new values for Height and Width to the design surface.
Remark: | No actions are performed in the method when the Parent property has not been assigned (contains Nil). In addition, no actions are performed when AMode omits the lapAutoAdjustWithoutHorizontalScrolling and lapAutoAdjustForDPI enumeration values. |
|
Applies an automatic adjustment layout policy to the control. |
|
|
Contains the minimum and maximum Width and Height for the control. |
|
|
Determines the inner and outer border spacing for this control. |
|
|
The control within which the control is shown. |
|
|
Indicates the policy for the LCL to execute automatic adjustments in the form layout. |
Version 3.2 | Generated 2024-02-25 | Home |