HeaderPane
Main
Hide
Share Link
Print

Selection

The list of a combo box always uses single item selection (ListClass.SelectionStyle): one item is selected at a time.

While the dropdown is open, the item selected in the list is the item the user is on, which moves with the arrow keys and, with SftBox.HotTrackSelection, with the mouse. The combo box's own selection, the SftBox.SelectedItem property, changes only when the user chooses an item (see Selection and Text). Escape closes the dropdown and leaves the selection unchanged.

The ListClass.SelectionOutlineStyle property defines the appearance of the selection highlight, either using the defined background and foreground colors (as a combo box starts its list) or using a beveled, gradient outline style (see ListClass.SelectionFill1, ListClass.SelectionFill2, ListClass.SelectionHighlightStyle, ListClass.SelectionInnerBorder, ListClass.SelectionOutlineBorder).

Disabled items (ItemClass.Enabled) cannot be selected.