API:Vcl.Forms.TCustomActiveForm.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TCustomActiveForm(System::Classes::TComponent* AOwner);
/* TCustomForm.CreateNew */ inline __fastcall virtual TCustomActiveForm(System::Classes::TComponent* AOwner, int Dummy) : TCustomForm(AOwner, Dummy) { }
/* TWinControl.CreateParented */ inline __fastcall TCustomActiveForm(HWND ParentWindow) : TCustomForm(ParentWindow) { }
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| constructor | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomActiveForm |
Description
Creates and initializes a new TForm object.
Vcl.Forms.TCustomActiveForm.Create inherits from Vcl.Forms.TCustomForm.Create. All content below this line refers to Vcl.Forms.TCustomForm.Create.
Creates and initializes a new TForm object.
Use Create to instantiate a TForm object or descendant of TForm at runtime. AOwner is the owner of the TCustomForm object.
For descendants of TCustomForm that are not TForm objects, use CreateNew instead. Calling Create for a TCustomForm descendant that is not a TForm will raise an exception.