Vcl.AppEvnts.TCustomApplicationEvents.OnDeactivate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;

C++

__property System::Classes::TNotifyEvent OnDeactivate = {read=FOnDeactivate, write=FOnDeactivate};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TCustomApplicationEvents

Description

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