Vcl.ExtActns.TListControlCopySelection.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.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns TListControlCopySelection

Description

Enables or disables the action, depending on the state of the target control.

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 TListControlCopySelection, UpdateTarget checks whether the current target object (specified by the ListControl property if it is set, otherwise by the Target parameter) is a list control that includes at least one selected item. If so, UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false.

See Also