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

TApplication.ShowMainForm

Allows the main form to be shown or hidden when an application is started.

Declaration

Source position: forms.pp line 1773

public property TApplication.ShowMainForm : Boolean
  read FShowMainForm
  write FShowMainForm
  default True;

Description

Allows the main form to be shown or hidden when an application is started. The default value for the property is True as assigned in the Create constructor.

The property value is updated at run-time when a new value is assigned to the ShowMainForm property in TApplicationProperties.

ShowMainForm is used in the Run method to determine if the Show method is called for an assigned MainForm instance. The form is displayed prior to calling the AppRun method in the widgetset class.


Version 3.2 Generated 2024-02-25 Home