RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlCopySelection Class

TListControlCopySelection copies the selected items in a list control (list view or list box) to another (destination) list control.

Pascal
TListControlCopySelection = class(TListControlAction);
C++
class TListControlCopySelection : public TListControlAction;

Add TListControlCopySelection to an action list to allow users to copy the selected items of a list control to another list control by using menu items or toolbar buttons. Controls such as menu items and tool buttons linked to this action cause the application to copy all selected items in the target control to another (destination) list control. 

Your application must explicitly set the Destination property to indicate the list to which items are copied. 

TListControlCopySelection is designed to work with a list control (TCustomListControl descendant) as a target. This target is the source list control, not the destination. TListControlCopySelection automatically disables itself if the target control is not a list control, if that list box or list view has no selected items, or if there is no destination list control assigned. 

 

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