Sign in Join
FPDoc Onlineexperiment

TApplication.Run procedure

Member of TApplicationpublicIn unit Forms

Loads the form and passes control to the event loop for the application.

Declaration

pascal
procedure Run

Description

Run is the method called to start execution of the application. It reimplements the method introduced in TCustomApplication to provide support for the MainForm and processing loop used in a GUI application. The Run method is generally called, via the Application singleton, from the .lpr project file.

If the MainForm property has been assigned, and should be displayed, the AppSetupMainForm method in the widgetset class is called to set the window state for the main form. The Show method in MainForm is also called to scale the form (when needed) to the PixelsPerInch for the monitor. The form is made visible and brought to the top of the Z-Order in the application.

The AppRun method in the widgetset class is called to start the message loop using the private RunLoop method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.