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

TCustomButton.GetControlClassDefaultSize

Gets the default size for new instances of the control.

Declaration

Source position: stdctrls.pp line 1237

protected class function TCustomButton.GetControlClassDefaultSize: TSize; override;

Function result

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

Description

GetControlClassDefaultSize is an overridden TSize class function used to get the default height and width for new instances of the control. GetControlClassDefaultSize sets the CX and CY members in the return value to the defaults used for the control. CX contains the width and is set to 75 (pixels). CY contains the height and is set to 25 (pixels).

See also

TControl.GetControlClassDefaultSize

  

Returns the default dimensions for new instances of the class.

TSize


Version 3.2 Generated 2024-02-25 Home