API:Vcl.AppEvnts.TApplicationEvents.OnDeactivate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;

C++

__property OnDeactivate;

Properties

Type Visibility Source Unit Parent
event published
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TApplicationEvents

Description

Occurs when an application becomes inactive.

Vcl.AppEvnts.TApplicationEvents.OnDeactivate inherits from Vcl.AppEvnts.TCustomApplicationEvents.OnDeactivate. All content below this line refers to Vcl.AppEvnts.TCustomApplicationEvents.OnDeactivate.

Occurs when an application becomes inactive.

Write an OnDeactivate event handler to perform any special processing that should occur immediately before the application is deactivated. The OnDeactivate event occurs when the user switches from the application to another Windows application.

Note: Call the CancelDispatch method from an OnDeactivate event handler to prevent the application from forwarding the event to any other application events objects.

OnDeactivate is an event handler of type TNotifyEvent.

See Also

Code Examples