Vcl.ExtActns.TCustomFileRun.UpdateTarget
Delphi
procedure UpdateTarget(Target: TObject); override;
C++
virtual void __fastcall UpdateTarget(System::TObject* Target);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ExtActns.pas Vcl.ExtActns.hpp |
Vcl.ExtActns | TCustomFileRun |
Description
Enables or disables the action, depending on current conditions.
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.