RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication Class

TApplication is the type used for a GUI windowed application.

Pascal
TApplication = class(TComponent);
C++
class TApplication : public TComponent;

Forms

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.
 

 

Application 

Exception 

TComponent 

TControl 

TForm 

TWinControl 

TScreen 

TApplicationEvents 

Console Applications 

Creating Applications 

MDI Applications 

SDI Applications 

User Interface Models 

GUI Applications 

Controlling Application Behavior 

Working at the Application Level

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!