Forms.TCustomForm.OnDeactivate
From RAD Studio VCL Reference
Contents |
Delphi Information
From Forms.pas
property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;
Unit: Forms
Type: event
Visibility: protected
Member Of: TCustomForm
C++ Information
From Forms.hpp
__property TNotifyEvent OnDeactivate;
Unit: Forms
Type: property
Visibility: protected
Member Of: TCustomForm
Description
Occurs when the form loses focus.
Use OnDeactivate to perform special processing when the active form becomes inactive and another form in the same application becomes the active one. If activation goes to another application, this event is not triggered. To determine whether another application has become active, use the TApplication object's OnDeactivate event.
Note: OnDeactivate is called differently than described, when the form's parent is set to another component (for example, a panel).