RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomFileRun.UpdateTarget Method

Enables or disables the action, depending on current conditions.

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

Do not call the UpdateTarget method. This method is called automatically when application is idle so that the action can update itself to reflect current conditions. 

In TCustomFileRun, UpdateTarget checks whether it can obtain a target file. If the FileName property specifies a target file, or if the Browse property is true, indicating that users can select a target file, then UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false. 

 

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