FMX.Forms.TApplication.CreateMainForm
Delphi
procedure CreateMainForm;
C++
void __fastcall CreateMainForm();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TApplication |
Description
Internally called at run time to create the main form belonging to this application.
CreateMainForm is executed at run time, and creates the instance of the main form belonging to a FireMonkey application.
If the MainForm is set to nil, RealCreateForms takes the first form that is set as "auto-create" in Project > Options > Forms and sets it as the application's main form and further makes it visible.
To create additional forms at run time, use FMX.Forms.TForm.Create or FMX.Forms3D.TForm3D.Create.