1XmListReplacePositions(library call) XmListReplacePositions(library call)
2
3
4
6 XmListReplacePositions — A List function that replaces items in a list
7 based on position
8
10 #include <Xm/List.h>
11 void XmListReplacePositions(
12 Widget widget,
13 int *position_list,
14 XmString *item_list,
15 int item_count;);
16
18 XmListReplacePositions replaces noncontiguous items in a list. The item
19 at each position specified in position_list is replaced with the corre‐
20 sponding entry in item_list. When the items are inserted into the
21 list, they are compared with the current XmNselectedItems list. Any of
22 the new items that match items on the selected list appear selected. A
23 warning message is displayed if a specified position is invalid; that
24 is, the value is 0 (zero), a negative integer, or a number greater than
25 the number of items in the list.
26
27 widget Specifies the ID of the List widget.
28
29 position_list
30 Specifies an array of the positions of items to be replaced.
31 The position of the first item in the list is 1; the position
32 of the second item is 2; and so on.
33
34 item_list Specifies an array of the replacement items.
35
36 item_count
37 Specifies the number of elements in position_list and
38 item_list. This number must be nonnegative.
39
40 For a complete definition of List and its associated resources, see
41 XmList(3).
42
44 XmList(3).
45
46
47
48 XmListReplacePositions(library call)