Path: utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!tut.cis.ohio-state.edu!bloom-beacon!MITVMA.MIT.EDU!spa%hara.fctunl.rccn.pt From: spa%hara.fctunl.rccn.pt@MITVMA.MIT.EDU (Salvador Pinto Abreu) Newsgroups: comp.windows.x Subject: Problem with Command widget Message-ID: <8809021922.AA22023@hara.fctunl.rccn.pt> Date: 2 Sep 88 19:22:56 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 34 Could someone help me with this one? I have a group of Command widgets setup with: XtSetArg (args[n], XtNwidth, 70); n++; at XtCreateManagedWidget() time. The purpose is to have a set of buttons all the same size, which looks nicer. The Command widgets are children of either a Form or a Box widget. A little later, I try to make the widget insensitive, by calling: n = 0; XtSetArg (args[n], XtNsensitive, 0); n++; XtSetValues (b, args, n); The "sensitive" bit works fine, but the button shrinks down to its minimum size. I tried: n = 0; XtSetArg (args[n], XtNsensitive, yes); n++; XtSetArg (args[n], XtNjustify, XtJustifyLeft); n++; XtSetArg (args[n], XtNwidth, 70); n++; XtSetValues (b, args, n); To no avail. Is this a bug? Am I doing something wrong? --- Salvador Pinto Abreu BITNET/Internet: spa@hara.fctunl.rccn.pt or: FCT_SPA@PTIFM.BITNET UUCP: ...{mcvax,inria}!inesc!unl!spa PSI/VMS: PSI%(+268)05010310::SPA ARPA: spa%hara.fctunl.rccn.pt@mitvma.mit.edu Phone: (+351) (1) 295-4464 x.0560 Snail: Dept. de Informatica, Universidade Nova de Lisboa 2825 Monte Caparica, PORTUGAL