RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TButton.Create Constructor

Creates and initializes a TButton instance.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TButton(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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!