[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomDesignControl.DoAutoAdjustLayout

Applies size and layout changes to the design surface and its Parent control.

Declaration

Source position: forms.pp line 302

protected procedure TCustomDesignControl.DoAutoAdjustLayout(

  const AMode: TLayoutAdjustmentPolicy;

  const AXProportion: Double;

  const AYProportion: Double

); override;

Arguments

AMode

  

TLayoutAdjustmentPolicy applied in the method.

AXProportion

  

Horizontal scaling factor applied in the method.

AYProportion

  

Vertical scaling factor applied in the method.

Description

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.

See also

TControl.AutoAdjustLayout

  

Applies an automatic adjustment layout policy to the control.

TControl.Constraints

  

Contains the minimum and maximum Width and Height for the control.

TControl.BorderSpacing

  

Determines the inner and outer border spacing for this control.

TControl.Parent

  

The control within which the control is shown.

TLayoutAdjustmentPolicy

  

Indicates the policy for the LCL to execute automatic adjustments in the form layout.


Version 3.2 Generated 2024-02-25 Home