Sign in Join
FPDoc Onlineexperiment

TWinControl.Create constructor

Member of TWinControlpublicIn unit Controls

Constructor for the class instance.

Declaration

pascal
constructor Create(TheOwner: TComponent); override

Description

Create is the overridden constructor for the class instance. Create calls the inherited method using TheOwner as the owner for the class instance. Create allocates resources needed in the class instance, and sets the default values for the following properties:

ParentDoubleBuffered
Set to True
ChildSizing
Sets DoChildSizingChange as the OnChange event handler
Brush
Set to Nil; few controls require a brush, and it is created on DoRemainingKeyDown
TabOrder
Set to -1
TabStop
Set to False

Create calls the InvalidateClientRectCache method to invalidate a cached client rectangle, and to force the value to be read from the LCL interface.

See also

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