TCustomScrollBar.CalculatePreferredSize procedure
Gets the preferred size for new instances of the class.
Declaration
procedure CalculatePreferredSize(var PreferredWidth: Integer;
var PreferredHeight: Integer;
WithThemeSpace: Boolean); overrideArguments
PreferredWidth | Preferred width calculated for the control. |
PreferredHeight | Preferred height calculated for the control. |
WithThemeSpace | True when space is reserved for theme element details in the calculated dimensions. |
Description
CalculatePreferredSize is overridden in TCustomScrollBar. The
inherited method is called, and the value in PreferredHeight or
PreferredWidth is updated, based on the value in
Kind, to use the
corresponding value from
GetSystemMetrics.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
