API:Vcl.Controls.TCustomTransparentControl.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TCustomTransparentControl(System::Classes::TComponent* AOwner);
/* TWinControl.CreateParented */ inline __fastcall TCustomTransparentControl(HWND ParentWindow) : TCustomControl(ParentWindow) { }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TCustomTransparentControl |
Description
Creates an instance of TCustomControl.
Vcl.Controls.TCustomTransparentControl.Create inherits from Vcl.Controls.TCustomControl.Create. All content below this line refers to Vcl.Controls.TCustomControl.Create.
Creates an instance of TCustomControl.
Calling Create constructs and initializes an instance of TCustomControl. However, you should never attempt to instantiate a TCustomControl. 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. Controls placed on forms at design time are created automatically.
After calling the inherited constructor, Create initializes the control and also a TCanvas object for its Canvas property.
When overriding Create, always call the inherited Create method first, then proceed with the control's initialization. Remember to specify the override directive when overriding the Create method.
Note: If a component's constructor allocates resources or memory, also override the destructor to free those resources.