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
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);
I want to prevent user interaction with a scrolled List without desentizing it. My code will provide item selection, not the user.