TCustomLabel.DoAutoAdjustLayout procedure
High-DPI related helper procedure, overridden to adjust the value of
WordWrapLength when the monitor's pixels-per-inch value changes.
Declaration
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion: Double;
const AYProportion: Double); overrideArguments
AMode | |
AXProportion | Scaling factor for horizontal dimensions. |
AYProportion | Scaling factor for vertical dimensions. |
Description
The virtual method DoAutoAdjustLayout is called whenever the
monitor resolution (pixels per inch) changes. It must be overridden to
adjust the value of the WordWrapLength property to the new
pixel density.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
