RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.Active Property

Specifies whether the application is active and has focus.

Pascal
property Active: Boolean;
C++
__property Boolean Active;

Active is true while the application is active and false if it is not. Active is set to true in the constructor. 

An application is active if the form or application has focus. An application becomes inactive when a window from a different application is about to become activated. When the application closes, Active is set to false in the destructor.

Note: Active is read-only.
 

 

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