RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlSelectAll Class

TListControlSelectAll selects all the items in a list control (list view or listbox).

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

Add TListControlSelectAll to an action list to allow users to select all the items of a 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 select all items in the target control (a listbox or list view). 

TListControlSelectAll is designed to work with a list control (TCustomListControl descendant) as a target. TListControlSelectAll automatically disables itself if the target control is not a list control, if that target control does not permit multiple selection, or if all of the items in the target control are already selected. 

 

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