FMX.Forms.TApplication.RealCreateForms
Delphi
procedure RealCreateForms;
C++
void __fastcall RealCreateForms();
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 all forms belonging to this application.
RealCreateForms is executed only once, at run time, and creates real instances of all the forms belonging to this FireMonkey application. Because CreateForm does not create the given form immediately, and just adds that request to the pending list, RealCreateForms is actually used to create the real forms. This practice is required because, on some platforms, form creation must be delayed or called from specific locations.
However, 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, FMX.Forms3D.TForm3D.Create, or TForm1.Create.