TCustomDesignControl.AutoAdjustLayout procedure
Applies a new display density (Pixels Per Inch) for a layout policy to the control.
Declaration
procedure AutoAdjustLayout(AMode: TLayoutAdjustmentPolicy;
const AFromPPI: Integer;
const AToPPI: Integer;
const AOldFormWidth: Integer;
const ANewFormWidth: Integer); overrideArguments
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
- PixelsPerInch
- DoAutoAdjustLayout
- TLayoutAdjustmentPolicy
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
