Sign in Join
FPDoc Onlineexperiment

TCustomButton.GetControlClassDefaultSize function

Member of TCustomButtonprotectedIn unit StdCtrls

Gets the default size for new instances of the control.

Declaration

pascal
class function 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

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