
Output of search_list.c
13.4 Positioning the List
The items within a List can be positioned such that an arbitrary element is placed at the top or bottom of the List. If
the List is being used as part of a ScrolledList, the item is placed at the top or bottom of the viewport of the
ScrolledWindow. To position a particular item at the top or bottom of the window, use either XmListSetItem() or
XmListSetBottomItem(). These routines take the following form:
void
XmListSetItem(list_w, item)
Widget list_w;
XmString item;
void
XmListBottomItem(list_w, item)
Widget list_w;
XmString item;
Both of these functions require an XmString parameter to reference a particular item in the list. However, if you
know the position of the item, you can use XmListSetPos() or XmListSetBottomPos() instead. These
functions take the following form:
void
XmListSetPos(list_w, position)
13 The List Widget 13.4 Positioning the List
359