table of contents
|XmListSelectItem(3)||Library Functions Manual||XmListSelectItem(3)|
XmListSelectItem — A List function that selects an item in the list "XmListSelectItem" "List functions" "XmListSelectItem"
#include <Xm/List.h> void XmListSelectItem( Widget widget, XmString item, Boolean notify);
XmListSelectItem highlights and adds to the selected list the first item in the list that matches item.
- Specifies the ID of the List widget from whose list an item is selected.
- Specifies the item to be selected in the List widget. If item appears more than once in the List, only the first occurrence is matched.
- Specifies a Boolean value that when TRUE invokes the selection callback for the current mode. From an application interface view, calling this function with notify True is indistinguishable from a user-initiated selection action. When notify is FALSE, no callbacks are called.
For a complete definition of List and its associated resources, see XmList(3).