XmListReplaceItems(Xm) 6 January 1993 XmListReplaceItems(Xm) Name XmListReplaceItems - a List function that replaces the specified elements in the list Syntax #include <Xm/List.h> void XmListReplaceItems (widget, old_items, item_count, new_items) Widget widget; XmString *old_items; int item_count; XmString *new_items; Description XmListReplaceItems replaces each specified item of the list with a corre- sponding new item. When the items are inserted into the list, they are compared with the current XmNselectedItems list. If any of the new items matches an item on the selected list, it appears selected. widget Specifies the ID of the List widget. olditems Specifies the items to be replaced. itemcount Specifies the number of items in olditems and newitems. This number must be non-negative. newitems Specifies the replacement items. Every occurrence of each element of olditems is replaced with the corre- sponding element from newitems. That is, the first element of olditems is replaced with the first element of newitems. The second element of olditems is replaced with the second element of newitems, and so on until itemcount is reached. For a complete definition of List and its associated resources, see XmList(Xm). See also XmList(Xm)