Sign in Join
FPDoc Onlineexperiment

TCustomEdit.CalculatePreferredSize procedure

Member of TCustomEditprotectedIn unit StdCtrls

Gets the preferred size for a new instance of the class.

Declaration

pascal
procedure CalculatePreferredSize(var PreferredWidth: Integer; 
 var PreferredHeight: Integer; 
 WithThemeSpace: Boolean); override

Arguments

PreferredWidth

Preferred width calculated for the control.

PreferredHeight

Preferred height calculated for the control.

WithThemeSpaceTrue when space is reserved for theme element details.

Description

CalculatePreferredSize is overridden in TCustomEdit, and calls the inherited method on entry. CalculatePreferredSize sets the value in the PreferredWidth parameter to 0 ( zero).

See also

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