RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWindowClose.UpdateTarget Method

Enables or disables the action, depending on whether the target form an active child.

Pascal
procedure UpdateTarget(Target: TObject); override;
C++
virtual __fastcall UpdateTarget(TObject * Target);

Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions. 

In TWindowClose, UpdateTarget checks that the target object is an MDI parent form with a non-nil (Delphi) or NULL (C++) ActiveMDIChild property. If so, UpdateTarget sets the Enabled property to true. Otherwise, it sets Enabled to false. 

 

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