Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Command Widgets - Resizing Message-ID: <8901041449.AA01001@LYRE.MIT.EDU> Date: 4 Jan 89 14:49:06 GMT References: <8570@pasteur.Berkeley.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 19 Date: 4 Jan 89 07:34:32 GMT From: pasteur!cory.Berkeley.EDU!dheller@AMES.ARC.NASA.GOV (Dan Heller) The scenario is similar: a form with three command widgets, all 150 pixels wide (random strings as labels). After you create these widgets, toggle the XtNsensitive attribute on one of the widgets. For some reason, the form seems to think that the widget needs resizing and it shrink's the width to the minimum according to the string. Slightly different issue here. It's not the Form that's causing the problem but rather the Command (Label) itself. By default, every time you do a SetValues on a Command (Label), it will make a geometry request to be resized to it's optimal dimensions. There are two ways to disable this: the XtNresize resource in Command (Label), or the XtNresizable constraint resource in Form. The former is documented, the latter is mentioned but not well documented. Since the default value for the latter is to disallow geometry requests from the child, you must have already discovered it.