Next: List Enquiry Up: List Widgets Previous: Adding and removing list items

Selecting and Deselecting items

Two functions XmListSelectItem(Widget, XmString, Boolean) and XmListSelectPos(Widget, int, Boolean) may be used to select an item from within a program.

The Boolean value if True will call the callback function associated with the particular List.

To deselect items use XmListDeselectItem(Widget, XmString), XmListDeselectPos(Widget, int) or XmListDeselectAllItems(Widget). The operation of which is similar to corresponding delete functions.
Tue May 24 16:52:56 BST 1994