'\" t .\" LstReplE.sgm /main/8 1996/09/08 20:51:50 rws $ .de P! .fl \!!1 setgray .fl \\&.\" .fl \!!0 setgray .fl \" force out current output buffer \!!save /psv exch def currentpoint translate 0 0 moveto \!!/showpage{}def .fl \" prolog .sy sed -e 's/^/!/' \\$1\" bring in postscript file \!!psv restore . .de pF .ie \\*(f1 .ds f1 \\n(.f .el .ie \\*(f2 .ds f2 \\n(.f .el .ie \\*(f3 .ds f3 \\n(.f .el .ie \\*(f4 .ds f4 \\n(.f .el .tm ? font overflow .ft \\$1 .. .de fP .ie !\\*(f4 \{\ . ft \\*(f4 . ds f4\" ' br \} .el .ie !\\*(f3 \{\ . ft \\*(f3 . ds f3\" ' br \} .el .ie !\\*(f2 \{\ . ft \\*(f2 . ds f2\" ' br \} .el .ie !\\*(f1 \{\ . ft \\*(f1 . ds f1\" ' br \} .el .tm ? font underflow .. .ds f1\" .ds f2\" .ds f3\" .ds f4\" .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "XmListReplacePositions" 3 .SH "NAME" \fBXmListReplacePositions\fP \(em A List function that replaces items in a list based on position "XmListReplacePositions" "List functions" "XmListReplacePositions" .SH "SYNOPSIS" .PP .nf #include \fBvoid \fBXmListReplacePositions\fP\fR( \fBWidget \fBwidget\fR\fR, \fBint *\fBposition_list\fR\fR, \fBXmString *\fBitem_list\fR\fR, \fBint \fBitem_count;\fR\fR); .fi .SH "DESCRIPTION" .PP \fBXmListReplacePositions\fP replaces noncontiguous items in a list\&. The item at each position specified in \fIposition_list\fP is replaced with the corresponding entry in \fIitem_list\fP\&. When the items are inserted into the list, they are compared with the current \fBXmNselectedItems\fP list\&. Any of the new items that match items on the selected list appear selected\&. A warning message is displayed if a specified position is invalid; that is, the value is 0 (zero), a negative integer, or a number greater than the number of items in the list\&. .IP "\fIwidget\fP" 10 Specifies the ID of the List widget\&. .IP "\fIposition_list\fP" 10 Specifies an array of the positions of items to be replaced\&. The position of the first item in the list is 1; the position of the second item is 2; and so on\&. .IP "\fIitem_list\fP" 10 Specifies an array of the replacement items\&. .IP "\fIitem_count\fP" 10 Specifies the number of elements in \fIposition_list\fP and \fIitem_list\fP\&. This number must be nonnegative\&. .PP For a complete definition of List and its associated resources, see \fBXmList\fP(3)\&. .SH "RELATED" .PP \fBXmList\fP(3)\&. .\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:26