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);
/* TWinControl.CreateParented */ inline __fastcall TCustomForm(HWND ParentWindow) : TScrollingWinControl(ParentWindow) { }
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
constructor | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Create crée et initialise un nouvel objet TForm.
Utilisez Create pour instancier un objet TForm ou un descendant de TForm pendant l'exécution. AOwner désigne le propriétaire de l'objet TCustomForm.
Pour les descendants de TCustomForm qui ne sont pas des objets TForm, utilisez plutôt CreateNew. L'appel de Create pour un descendant de TCustomForm qui n'est pas un TForm déclenchera une exception.