Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmLiReplE(Xm) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 XmListReplacePositions(Xm)     6 January 1993     XmListReplacePositions(Xm)


 Name

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

 Syntax


    #include <Xm/List.h>

    void XmListReplacePositions (widget, position_list,
                                 item_list, item_count)
    Widget widget;
    int *position_list;
    XmString *item_list;
    int item_count;


 Description

    XmListReplacePositions replaces noncontiguous items in a list.  The item
    at each position specified in positionlist is replaced with the corre-
    sponding entry in itemlist.  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.

    widget  Specifies the ID of the List widget.

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

    itemlist
            Specifies an array of the replacement items.

    itemcount
            Specifies the number of elements in positionlist and itemlist.
            This number must be non-negative.

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

 See also

    XmList(Xm)


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