Show: Delphi C++
Display Preferences

Vcl.Forms.TApplication

From XE2 API Documentation
Jump to: navigation, search

System.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TApplication

Delphi

TApplication = class(TComponent)

C++

class PASCALIMPLEMENTATION TApplication : public System::Classes::TComponent

Properties

Type Visibility Source Unit Parent
class public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms Vcl.Forms

Description

TApplication is the type used for a GUI windowed application.

TApplication encapsulates a windowed application. The methods and properties introduced in TApplication reflect the fundamentals established in the Windows operating system to create, run, sustain, and destroy an application. TApplication thereby simplifies the interface between the developer and the Windows environment. For this purpose, TApplication encapsulates behavior for:

  • Windows message processing
  • Context-sensitive online help
  • Menu accelerator and key processing
  • Exception handling
  • Managing the fundamental parts defined by the Windows operating system for an application, such as MainWindow, WindowClass, and so on

Each GUI application automatically declares an Application variable as the instance of the application. If the application is not a Web server application, control panel applet, or NT service application, this variable is of type TApplication.

TApplication does not appear on the Component palette, nor is it available in the form designer to visually manipulate; so it has no published properties. Nevertheless, some of its public properties can be set or modified at design time in the Forms and Application pages of the Project|Options dialog box. In addition, you can add a TApplicationEvents component to any form in the project to intercept the application's events, and supply event handlers using the IDE.

Note: For application-wide properties and methods that affect the display, see TScreen.

See Also

Personal tools
Previous Versions
Translations