Sign in Join
FPDoc Onlineexperiment

TCustomButton.Create constructor

Member of TCustomButtonpublicIn unit StdCtrls

Constructor for the class instance.

Declaration

pascal
constructor Create(TheOwner: TComponent); override

Description

Create is the overridden constructor for the class instance, and calls the inherited constructor on entry.

Create updates the internal component style and ControlStyle with values needed for the control. Create sets the default values for properties, including:

Color
Set to clDefault or clBtnFace (depending on the platform or widgetset).
ParentColor
Set to False.
TabStop
Set to True.
Align
Set to alNone.

Create calls SetInitialBounds using the height and width returned from GetControlClassDefaultSize.

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