Vcl.AppEvnts.TApplicationEvents
Delphi
TApplicationEvents = class(TCustomApplicationEvents)
C++
class PASCALIMPLEMENTATION TApplicationEvents : public TCustomApplicationEvents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.AppEvnts.pas Vcl.AppEvnts.hpp |
Vcl.AppEvnts | Vcl.AppEvnts |
Description
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.