Vcl.Forms.TCustomForm.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TCustomForm(System::Classes::TComponent* AOwner);
__fastcall virtual TCustomForm(System::Classes::TComponent* AOwner, int Dummy);
__fastcall virtual TCustomForm(System::Classes::TComponent* AOwner, int ADPI, int Dummy);
/* TWinControl.CreateParented */ inline __fastcall TCustomForm(HWND ParentWindow) : TScrollingWinControl(ParentWindow) { }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
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.