Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmListReplacePositions(3X) — Digital UNIX 4.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XmList(3X)

XmListReplacePositions(3X)  —  Subroutines

OSF/Motif

NAME

XmListReplacePositions − A List function that replaces items in a list based on position

SYNOPSIS

#include <Xm/List.h>
void XmListReplacePositions (widget, position_list, item_list,
                    item_count)
Widgetwidget;
int∗position_list;
XmString∗item_list;
intitem_count;

DESCRIPTION

XmListReplacePositions replaces noncontiguous items in a list.  The item at each position specified in position_list is replaced with the corresponding entry in item_list.  When the items are inserted into the list, they are compared with the current XmNselectedItems list.  Any of the new items that match items on the selected list appears selected.  A warning message is displayed if a specified position is invalid; that is, the value is 0, a negative integer, or a number greater than the number of items in the list. 

widgetSpecifies the ID of the List widget. 

position_listSpecifies 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. 

item_listSpecifies an array of the replacement items. 

item_countSpecifies the number of elements in position_list and item_list.  This number must be non-negative. 

For a complete definition of List and its associated resources, see XmList(3X). 

RELATED INFORMATION

XmList(3X). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026