RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THelpAction.UpdateTarget Method

Enables or disables the action, depending on the availability of the Application object.

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 THelpAction, UpdateTarget checks whether the global Application variable is assigned, because this object is required to pass help commands on to WinHelp HyperHelp. If Application is assigned, UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false. 

 

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