API:Vcl.StdActns.TEditPaste.UpdateTarget

From RAD Studio API Documentation
Jump to: navigation, search

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 TEditPaste

Description

Enables or disables the action, depending on the currently active control in the form.

Vcl.StdActns.TEditPaste.UpdateTarget inherits from Vcl.StdActns.TEditAction.UpdateTarget. All content below this line refers to Vcl.StdActns.TEditAction.UpdateTarget.

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 potential target changes so that actions can update themselves accordingly. In TEditAction, UpdateTarget checks whether the current target object (specified by the Target parameter) is an edit control and that some of its text is selected (if the action function requires it). If so, UpdateTarget sets Enabled to True. If not, UpdateTarget sets Enabled to False.

See Also