Sign in Join
FPDoc Onlineexperiment

TCustomEdit.ShouldAutoAdjust procedure

Member of TCustomEditprotectedIn unit StdCtrls

Determines if the control should auto-adjust its Height and/or Width.

Declaration

pascal
procedure ShouldAutoAdjust(var AWidth: Boolean; var AHeight: Boolean)
 ; override

Arguments

AWidthTrue when Width can be auto-adjusted.
AHeightTrue when Height can be auto-adjusted.

Description

ShouldAutoAdjust is an overridden method in TCustomEdit used to determine if the control can auto-adjust its Height and/or Width.

AWidth and AHeight are variable Boolean parameters which indicate if the corresponding property can be auto-sized. AWidth is always set to True for TCustomEdit. AHeight is set to the inverse of the value in AutoSize.

ShouldAutoAdjust does NOT call the inherited method.

See also

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