Sign in Join
FPDoc Onlineexperiment

TCustomScrollBar.GetControlClassDefaultSize function

Member of TCustomScrollBarprotectedIn unit StdCtrls

Gets the default size for new instances of the class.

Declaration

pascal
class function GetControlClassDefaultSize: TSize; override

Function result

TSize instance with the default width and height for the control.

Description

GetControlClassDefaultSize is an overridden TSize class function used to get the default size for new instances of the class.

GetControlClassDefaultSize sets the values in members in the return value. The CX member contains the width for the new instance, and is set 121 (pixels). The CY member contains the height for the new instance, and is set to the number of pixels returned from GetSystemMetrics for the SM_CYHSCROLL constant.

See also

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