Vcl.StdCtrls.TCustomListBox.ExtendedSelect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ExtendedSelect: Boolean read FExtendedSelect write SetExtendedSelect default True;

C++

__property bool ExtendedSelect = {read=FExtendedSelect, write=SetExtendedSelect, default=1};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Determines whether the user can select a sequential range of items in the list box.

ExtendedSelect works with the MultiSelect property. If ExtendedSelect is True and MultiSelect is True, the user can select an item, then hold down the SHIFT key and select another, and all the items in between the two selected items also become selected.

If the user does not hold down the SHIFT or CTRL key while selecting a second item, the first selected item becomes unselected--in other words, the user must use the CTRL key to select multiple noncontiguous items, or the SHIFT key, to select a range of items.

If ExtendedSelect is False and MultiSelect is True, the user can select multiple items without using the SHIFT or CTRL key, but they cannot select a range of items in one operation.

If MultiSelect is False, the setting of ExtendedSelect has no effect, as the user will not be able to select more than one item at a time in the list box.

See Also