[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpg_base' (#fpgui)

TfpgApplicationBase.MainForm

Identifies which form in the application is the main form

Declaration

Source position: fpg_base.pas line 591

public property TfpgApplicationBase.MainForm : TfpgWindowBase
  read FMainForm
  write FMainForm;

Description

Identifies which form in the application is the main form. Use the MainForm property to determine the form that acts as the application's main window. The first form that is show will be assigned as the main form of the application. If the main form closes, then all other forms are closed too, and the application quits.

There are cases where the first form that was created and show, you don't want to act as the application's main form. In such a case, simply assign the form you want to act as the application's main form to the MainForm property.

See also

TfpgApplicationBase.CreateForm

  

Creates a new form


Documentation generated on: 2015-04-04