Vcl.Forms.TCustomForm.OnDeactivate
Delphi
property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate stored IsForm;
C++
__property System::Classes::TNotifyEvent OnDeactivate = {read=FOnDeactivate, write=FOnDeactivate, stored=IsForm};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | 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).