Sign in Join
FPDoc Onlineexperiment

TCustomDesignControl.AutoAdjustLayout procedure

Member of TCustomDesignControlpublicIn unit Forms

Applies a new display density (Pixels Per Inch) for a layout policy to the control.

Declaration

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

Arguments

AMode

Layout policy to use for the design surface.

AFromPPI

Original display density setting.

AToPPI

New display density setting.

AOldFormWidth

Original form width.

ANewFormWidth

New form width.

Description

AutoAdjustLayout is used to set the value in the PixelsPerInch property to the value specified in AToPPI for the lapAutoAdjustForDPI layout policy. AutoAdjustLayout calls the inherited method.

No additional actions are performed in the method when AMode contains a value other than lapAutoAdjustForDPI.

See also

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