AllowSelection property (ImageList Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AllowSelection

Delphi Syntax

AllowSelection: Integer

Overview

Refer to Using the Image List Control.

Remarks

(Published property) Specifies whether or not automatic item selection is allowed.

If automatic item selection is enabled, items are automatically selected and de-selected when the user clicks on them using the mouse.

Value

Meaning

ALLOWSELECTION_NONE

Automatic selection is disabled, selection is manual

ALLOWSELECTION_SINGLE

Automatic selection of single items is enabled

ALLOWSELECTION_MULTI

Automatic selection of multiple items is enabled

The default setting is ALLOWSELECTION_NONE.

Note:

when ALLOWSELECTION_MULTI is enabled, the user can select multiple items using the mouse and the CTRL and SHIFT keys.

See Also

Elements:

SelectionStyle property, SelectionColor property, OnItemSelected event, Item property, SelectAll method, HitTest method

Topics:

Raster Images: Displaying Images