Vcl.Forms.TCustomForm.Deactivate
Delphi
procedure Deactivate; dynamic;
C++
DYNAMIC void __fastcall Deactivate();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Generates an OnDeactivate event.
The form component calls Deactivate in response to the CM_DEACTIVATE message, sent when a form gets the focus either because of a change in active windows within an application or because of the application becoming active.
The default Deactivate method calls any event handler attached by the user to the OnDeactivate event. Override this method to block the OnDeactivate event or provide additional responses to the loss of activation.