Sign in Join
FPDoc Onlineexperiment

TCustomShape.GetControlClassDefaultSize function

Member of TCustomShapeprotectedIn unit ExtCtrls

Gets the default size for instances of the control.

Declaration

pascal
class function GetControlClassDefaultSize: TSize; override

Description

GetControlClassDefaultSize is an overridden TSize class function which provides the default size for instances of the control. The return value is updated in the method to use dimensions of 65 x 65 pixels.

GetControlClassDefaultSize is called from the Create method, and used to set the initial value in the Bounds for the control.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.