RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomButton.Create Constructor

Creates and initializes a button instance.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TCustomButton(TComponent * AOwner);

Use Create to programmatically instantiate a button. Buttons added in the form designer are created automatically. 

AOwner is the component that is responsible for freeing the button instance. It becomes the value of the Owner property. 

 

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