TApplication is the type used for a GUI windowed application.
[RootDesignerSerializerAttribute('', '', False)] TApplication = class(TComponent);
[RootDesignerSerializerAttribute('', '', False)] class TApplication : public TComponent;
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.
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!