XmCreateScrolledList... ?

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

Questions about motif? Contact us

3 posts / 0 new
Last post
XmCreateScrolledList... ?

Submitted by Anonymous on Thu, 06/27/2002 - 13:43. Developers
I am needing to set the width on the List. I haved tried using XmNwidth, passing it via XtVaSetValues; however, that is not working for me.

I have been able to place the list on a Scroll Window and then the sizing works OK; however, when I try to set XmNitemCount the specified items show up but the scroll does not work when I need to see the additional items in the list. This is really frustrating me.

I would have thought that both options would be similar. Setting the width whould not be this hard. Any help would be greatly appreciated.

Thanks.
C. Lamb

Anonymous

Use the XmNWidth resource with the XtSetValues call.

eg
Arg args[2];
Cardinal n =0;

XtSetArg(args[n], XmNwidth, 100); n++;
XtSetArg(args[n], XmNheight, 100); n++;
XtSetValues(wList), args, n);

Anonymous

I want to prevent user interaction with a scrolled List without desentizing it. My code will provide item selection, not the user.