RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.Deactivate Method

Generates an OnDeactivate event.

Pascal
procedure Deactivate; dynamic;
C++
__fastcall Deactivate();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!