TApplicationEvents = class(TCustomApplicationEvents)
class PASCALIMPLEMENTATION TApplicationEvents : public TCustomApplicationEvents
TApplicationEvents intercepts application-level events.
Use TApplicationEvents to intercept the events of the global Application object. When you add a TApplicationEvents object to a form, the Application object forwards all events to the TApplicationEvents object. Thus, each event of the TApplicationEvents object is the same as the event with the same name on the Application object.
Each form in an application can have its own TApplicationEvents object. Each application event occurs for all the TApplicationEvents objects in the project. To change the order in which the different TApplicationEvents objects receive events, use the Activate method. To prevent other TApplicationEvents objects from receiving a specific event, use the CancelDispatch method.