Sign in Join
FPDoc Onlineexperiment

TCustomButtonPanel.Create constructor

Member of TCustomButtonPanelpublicIn unit ButtonPanel

Constructor for the class instance.

Declaration

pascal
constructor Create(AOwner: TComponent); override

Description

Create is the overridden constructor for the class instance. Create calls the inherited constructor, and sets the default values for properties in the panel to the following:

Align
alBottom
BevelInner
bvNone
BevelOuter
bvNone
Caption
Set to an empty string ('')
AutoSize
True
Spacing
6
ShowBevel
True
DefaultButton
pbOK
ButtonOrder
boDefault
ShowButtons
DefShowButtons
ShowGlyphs
DefShowGlyphs

The ControlStyle property is modified in the method to add the csOwnedChildrenNotSelectable style, and to remove the csSetCaption style.

Create calls the DoShowButtons method to create and configure the TPanelBitBtn instances used in the panel class.

See also

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