RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlMoveSelection Class

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

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

Add TListControlMoveSelection to an action list to allow users to move 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 move 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. 

TListControlMoveSelection is designed to work with a list control (TCustomListControl descendant) as a target. This target is the source list control, not the destination. TListControlMoveSelection 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!