RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPropertyPage.OnDeactivate Event

Occurs when the form loses focus.

Pascal
property OnDeactivate: TNotifyEvent;
C++
__property TNotifyEvent OnDeactivate;

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).
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!