RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.OnActivate Event

Occurs when an application becomes active.

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

Write an OnActivate event handler to perform special processing when the application becomes active. 

An application becomes active when it is initially run or when focus moves from another Windows application back to any window of the application.

Note: You can also respond to this event using the TApplicationEvents component, which allows you to assign an event handler using the IDE.
 

 

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