How to select all itms of list

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
How to select all itms of list


Can anybody help me with my problem.
I am looking for a way to select all items of list.
There is a function XmListDeselectAllItems which deselect all items in the list.
Is not there any similar function which will select all items?
Or maybe you know some other way how to do it (not selecting all items one by one with XmListSelectPos)?

Thanks in advance,

XmStringTable table;

XmStringTable table;

XtVaGetValues( list, XmNitems, &table, null );

XtVaSetValues( table, XmNselectedItems, table, NULL );


Do not free table (getValues returns the actual  internal list). Also be sure the

selectionMode allows multiple selections.



Fred K


Thank you very much Fred K.
You help me again.