Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Problem with Command widget Message-ID: <8809041441.AA20530@LYRE.MIT.EDU> Date: 4 Sep 88 14:41:50 GMT References: <8809021922.AA22023@hara.fctunl.rccn.pt> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 24 Date: Fri, 2 Sep 88 19:22:56 GMT From: spa%hara.fctunl.rccn.pt@mitvma.mit.edu (Salvador Pinto Abreu) I have a group of Command widgets setup with: XtSetArg (args[n], XtNwidth, 70); n++; [...] A little later, I try to make the widget insensitive, [...] The "sensitive" bit works fine, but the button shrinks down to its minimum size. [...] Is this a bug? Am I doing something wrong? This is not a bug, though enhancements to the implementation may be desireable. Command is a subclass of Label and Label _always_ asks it's parent to resize it to it's preferred geometry on a SetValues request, unless it perceives that a specific geometry _different from it's current geometry_ was also requested. If the parent is Box, the resize will usually be permitted. If the parent is Form, the 'resizable' constraint resource specifies whether or not Form grants the resize request.