Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmlistreplaceitems(3x) [osf1 man page]

XmListReplaceItems(3X)													    XmListReplaceItems(3X)

NAME
XmListReplaceItems - A List function that replaces the specified elements in the list SYNOPSIS
#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 corresponding 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. Specifies the ID of the List widget Specifies the items to be replaced Specifies the number of items in old_items and new_items This number must be non-negative. Specifies the replacement items Every occurrence of each element of old_items is replaced with the corresponding element from new_items. That is, the first element of old_items is replaced with the first element of new_items. The second element of old_items is replaced with the second element of new_items, and so on until item_count is reached. For a complete definition of List and its associated resources, see XmList(3X). SEE ALSO
XmList(3X) XmListReplaceItems(3X)

Check Out this Related Man Page

XmListReplaceItemsUnselected(3X)										  XmListReplaceItemsUnselected(3X)

NAME
XmListReplaceItemsUnselected - A List function that replaces items in a list SYNOPSIS
#include <Xm/List.h> void XmListReplaceItemsUnselected (widget, old_items, item_count, new_items) Widget widget; XmString *old_items; int item_count; XmString *new_items; DESCRIPTION
XmListReplaceItemsUnselected replaces each specified item in the list with a corresponding new item. The replacement items remain unse- lected, even if they currently appear in the XmNselectedItems list. Specifies the ID of the List widget to replace items in. Specifies a pointer to the list items to be replaced. Specifies the number of elements in old_items and new_items. This number must be non-negative. Specifies a pointer to the replacement items. Every occurrence of each element of old_items is replaced with the corresponding element from new_items. That is, the first element of old_items is replaced with the first element of new_items. The second element of old_items is replaced with the second element of new_items, and so on until item_count is reached. If an element in old_items does not exist in the list, the corresponding entry in new_items is skipped. For a complete definition of List and its associated resources, see XmList(3X). SEE ALSO
XmList(3X) XmListReplaceItemsUnselected(3X)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

fixed-width printf() output on an XmList on Solaris

This one is a bit of bugger and I'm not sure if it's entirely relevant to this board but here goes... I'm trying to produce some fixed width output to a List widget (X11/Motif GUI) So, I use something similar to: sprintf(Buffer, "%*d%*f", 20, some_integer, 20, some_float); This gives me a... (0 Replies)
Discussion started by: trido
0 Replies

2. Shell Programming and Scripting

Plain Text List to HTML List

Hello, I am trying to take a simple list (from echo, not a file) and turn it into a list with HTML codes. List item one. List item two. List item three. to <ol> <li>List item one.</li> <li>List item two.</li> <li>List item three.</li> </ol> The list is coming in via echo on... (4 Replies)
Discussion started by: QuestunAthority
4 Replies

3. Shell Programming and Scripting

Associative Array with more than one item per entry

Hi all I have a problem where i have a large list ( up to 1000 of items) and need to have 2 items pulled from it into variables in a bash script my list is like the following and I could have it as an array or possibly an external text file maintained separately. Every line is different and... (6 Replies)
Discussion started by: kcpoole
6 Replies

4. Web Development

List items not arranged as expected on web page

greetings, i have a list of items that are picks to be arranged within a row that is 22 in height. this "plugin" looks fine in the old installation but after installing a new version of the web app and dropping this "plugin" in place the layout isn't as i expect. they are arranged vertically... (1 Reply)
Discussion started by: crimso
1 Replies

5. Shell Programming and Scripting

UPDATE COmmand post comparing 2 columns in 2 mysql tables

my queryis : select distinct m.name, item_count, item from master m join client p on m.name=p.name where item_count = 1 and item > 1; But how should I update them? i used update statetment : Update from client Set item =1 where m.name=p.name and item_count=1 AND item>1 Is this wrong? (1 Reply)
Discussion started by: siya@
1 Replies