Vcl.ControlList.TControlListButton.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TControlListButton(System::Classes::TComponent* AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.ControlList.pas
Vcl.ControlList.hpp
Vcl.ControlList TControlListButton

Description


Creates an instance of TGraphicControl.

Vcl.ControlList.TControlListButton.Create inherits from Vcl.Controls.TGraphicControl.Create. All content below this line refers to Vcl.Controls.TGraphicControl.Create.

Creates an instance of TGraphicControl.

Calling Create constructs and initializes an instance of TGraphicControl. However, you should never attempt to instantiate a TGraphicControl. This class is intended solely as a base class from which other control classes descend and you should only call Create to instantiate one of these descendants.

AOwner is the component, typically a form, that is responsible for freeing the graphic control. It becomes the value of the Owner property. If you do not explicitly provide an Owner to the constructor (that is, if AOwner is nil (Delphi) or NULL (C++)), your application is responsible for explicitly freeing the graphic control.

Note: If a component's constructor allocates resources or memory, also override the destructor to free those resources.

See Also