Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!cory.Berkeley.EDU!dheller From: dheller@cory.Berkeley.EDU (Dan Heller) Newsgroups: comp.windows.x Subject: Re: Command Widgets - Resizing Message-ID: <8570@pasteur.Berkeley.EDU> Date: 4 Jan 89 07:34:32 GMT References: <201@h.cs.wvu.wvnet.edu> <8901031619.AA00156@LYRE.MIT.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: dheller@cory.Berkeley.EDU.UUCP (Dan Heller) Organization: University of California, Berkeley Lines: 23 In article <8901031619.AA00156@LYRE.MIT.EDU> swick@ATHENA.MIT.EDU (Ralph R. Swick) writes: >> My question is: when the user uses the window manager >> to resize the outside widget, how do I PREVENT the buttons >> from being resized??? > >Specify ChainLeft for the values of XtNleft and XtNright >for each of the Command widgets. You can do this in the >resource file without touching the code. I've been having a problem which is very similar to this. Instead of resizing the form, I just want to change the sensitivity of one of the command widgets. Altho I haven't tried your "solution" using resize events, your solution does not work with respect to the sensitive attributes. 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. I tried using the suggestion above, but it didn't work. Dan Heller