Sign in Join
FPDoc Onlineexperiment

TWinControl.AutoAdjustLayout procedure

Member of TWinControlpublicIn unit Controls

Automatically adjusts the size and layout for the control (and all of its children).

Declaration

pascal
procedure AutoAdjustLayout(AMode: TLayoutAdjustmentPolicy; 
 const AFromPPI: Integer; 
 const AToPPI: Integer; 
 const AOldFormWidth: Integer; 
 const ANewFormWidth: Integer); override

Arguments

AMode

Layout mode applied in the method.

AFromPPI

Existing pixels per inch (PPI) setting for the control.

AToPPI

Target pixels per inch (PPI) setting for the control.

AOldFormWidth

Form width before PPI scaling is applied.

ANewFormWidth

Form width after PPI scaling is applied.

Description

AutoAdjustLayout is an overridden procedure used to automatically adjust the size and layout for the control. All children in the Controls property also call their AutoAdjustLayout method, and the inherited method is called to adjust and resize the current control instance.

AutoAdjustLayout calls DisableAutoSizing on entry, and EnableAutoSizing prior to exit from the method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.