Sign in Join
FPDoc Onlineexperiment

TCustomScrollBar.CalculatePreferredSize procedure

Member of TCustomScrollBarprotectedIn unit StdCtrls

Gets the preferred size for new instances 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 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.