TCustomUpDown.CalculatePreferredSize procedure
Calculates the preferred width and height for the control.
Declaration
procedure CalculatePreferredSize(var PreferredWidth: Integer;
var PreferredHeight: Integer;
WithThemeSpace: Boolean); overrideArguments
PreferredWidth | Returns the preferred width for the control in pixels. |
PreferredHeight | Returns the preferred height for the control in pixels. |
WithThemeSpace | Not used in the method. |
Description
Returns the preferred width and height (in pixels) for the class instance. The value in Orientation is used to determine the width and height values returned in the PreferredWidth and PreferredHeight arguments.
- udHorizontal
- PreferredWidth is set to 31 pixels. PreferredHeight is set to 17 pixels.
- udVertical (the default)
- PreferredWidth is set to 17 pixels. PreferredHeight is set to 31 pixels.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
