RAD Studio VCL Reference
TWinControl.Create Constructor

Creates an instance of TWinControl.

constructor Create(AOwner: TComponent); override;
virtual __fastcall TWinControl(TComponent * AOwner);

Call Create to construct and initialize a new control and insert the newly-constructed control into its owner, as specified by the AOwner parameter. Create inserts the control in the owner by calling the owner's InsertComponent method.  

Most controls override Create to initialize their unique properties. Objects that override the Create method must always call the inherited Create method first, and then proceed with the component-specific initialization. Specify the override directive when overriding the Create method. 

If a component's Create method allocates resources or memory, override the Destroy method to free those resources. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!