[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.Create

Constructor for the class instance.

Declaration

Source position: controls.pp line 2402

public constructor TWinControl.Create(

  TheOwner: TComponent

); override;

Arguments

TheOwner

  

Owner of the class instance.

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

TWinControl.InvalidateClientRectCache

  

The ClientRect is cached; call this procedure to invalidate the cache, so that the next ClientRect value is fetched from the widgetset class.


Version 3.2 Generated 2024-02-25 Home