Vcl.StdActns.TEditDelete.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.StdActns.pas Vcl.StdActns.hpp |
Vcl.StdActns | TEditDelete |
Description
Enables or disables the action, depending on the currently active control in the form.
Do not call the UpdateTarget method. This method is called automatically when the application is idle so that actions can update themselves according to current conditions.
In TEditDelete, UpdateTarget checks whether the current target object (specified by the Target parameter) is an edit control that has some of its text selected. If so, UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false.