Gets the preferred size for a new instance of the class.
Source position: stdctrls.pp line 799
protected procedure TCustomEdit.CalculatePreferredSize( |
var PreferredWidth: Integer; |
var PreferredHeight: Integer; |
WithThemeSpace: Boolean |
); override; |
PreferredWidth |
|
Preferred width calculated for the control. |
PreferredHeight |
|
Preferred height calculated for the control. |
WithThemeSpace |
|
True when space is reserved for theme element details. |
CalculatePreferredSize is overridden in TCustomEdit, and calls the inherited method on entry. CalculatePreferredSize sets the value in the PreferredWidth parameter to 0 (zero).
|
Override this method to return a different preferred height and/or width for auto-sizing. |
CT Web help |
CodeTyphon Studio |