Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmlistreplaceitemsunselected(3x) [osf1 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)

Check Out this Related Man Page

XmListReplaceItemsPosUnselected(library call)							     XmListReplaceItemsPosUnselected(library call)

NAME
XmListReplaceItemsPosUnselected -- A List function that replaces items in a list without selecting the replacement items SYNOPSIS
#include <Xm/List.h> void XmListReplaceItemsPosUnselected( Widget widget, XmString *new_items, int item_count, int position); DESCRIPTION
XmListReplaceItemsPosUnselected replaces the specified number of items in the list with new items, starting at the given position. The replacement items remain unselected, even if they currently appear in the XmNselectedItems list. widget Specifies the ID of the List widget to replace items in. new_items Specifies a pointer to the replacement items. item_count Specifies the number of elements in new_items and the number of items in the list to replace. This number must be nonnegative. position Specifies the position of the first item in the list to be replaced. A value of 1 indicates that the first item replaced is the first item in the list; a value of 2 indicates that it is the second item; and so on. Beginning with the item specified in position, item_count items in the list are replaced with the corresponding elements from new_items. That is, the item at position is replaced with the first element of new_items; the item after position 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(3). RELATED
XmList(3). XmListReplaceItemsPosUnselected(library call)
Man Page

6 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

Awk search for a element in the list of strings

Hi, how do I match a particular element in a list and replace it with blank? awk 'sub///' $FILE list="AL, AK, AZ, AR, CA, CO, CT, DE, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA,... (2 Replies)
Discussion started by: grossgermany
2 Replies

4. Shell Programming and Scripting

Replacing content from a list

Okay, so I am not quite sure the best way of going about this. I have a whole stack of files that need items replaced with a code corresponding to it. In particular, I am looking to replace the names of countries with the two letter iso country code. The files themselves are in csv format with... (4 Replies)
Discussion started by: johnlee
4 Replies

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

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