Next: List basics
Up: List Widgets
Previous: List Widgets
Four types of selection are available. The List resource XmNselectionPolicy must be set accordingly:
- - XmSINGLE_SELECT (defined in
<Xm/List.h>). Only one item may be selected.
- - XmBROWSE_SELECT. Similar to Single selection, except a
default selection can be provided and user interaction may vary.
- - XmMULTIPLE_SELECT. More than one item may be selected.
A mouse click on a item will select it. If you click on an already
selected item it will be deselected.
- - XmEXTENDED_SELECT. Like Multiple selection. Here if
you can drag the mouse over a number of items to select them.