[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomScrollBar.GetControlClassDefaultSize

Gets the default size for new instances of the class.

## Declaration

Source position: stdctrls.pp line 93

`protected class function TCustomScrollBar.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

TControl.GetControlClassDefaultSize |  | Returns the default dimensions for new instances of the class.