Vcl.Forms.TApplication.OnDeactivate
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 | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
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: You can also respond to this event using the TApplicationEvents component, which allows you to assign an event handler using the IDE.
See Also
- Vcl.Forms.TApplication.Active
- Vcl.Forms.TApplication.OnActivate
- Vcl.AppEvnts.TCustomApplicationEvents.OnDeactivate