Sign in Join
FPDoc Onlineexperiment

TCustomLabel.DoAutoAdjustLayout procedure

Member of TCustomLabelprotectedIn unit StdCtrls

High-DPI related helper procedure, overridden to adjust the value of WordWrapLength when the monitor's pixels-per-inch value changes.

Declaration

pascal
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy; 
 const AXProportion: Double; 
 const AYProportion: Double); override

Arguments

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.