XmListDeleteItemsPos() deletes item_count items from the List starting at position.
XmListDeletePositions() deletes the item at each position specified in pos_list until item_count has
been reached. This routine is new in Motif 1.2.
You can delete all of the items in a List widget using XmListDeleteAllItems(). This routine takes the
following form:
void
XmListDeleteAllItems(list_w)
Widget list_w;
13.3.5 Selecting Items
Since the main purpose of the List widget is to allow a user to make a selection from a set of choices, one of the most
important tasks for the programmer is to determine which items have been selected by the user. In this section, we
present an overview of the resources and functions available to set or get the actual items that are selected in the List
widget. Later in Section #slistcb, we discuss how to determine the items that are selected by the user when they are
selected. The resources and functions used to set and get the selected items in the List widget are directly analogous to
those that set the actual items in the list. Just as XmNitems represents the entire list, the XmNselectedItems
resource represents the list of selected items. The XmNselectedItemCount resource specifies the number of
items that are selected.
There are convenience routines that allow you to modify the items that are selected in a List. The functions
XmSelectItem() and XmSelectPos() can be used to select individual items. These functions take the
following form:
void
XmListSelectItem(list_w, ...