Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!apple!agate!ucbvax!alfalfa.com!nazgul From: nazgul@alfalfa.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: Labels that don't resize when modified [and other stuff] Message-ID: <910319151220.9740@alphalpha> Date: 19 Mar 91 20:12:20 GMT References: <9103190506.AA11541@BU.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 32 > > Hey networld, > I've got a couple labels in a row column in a form in the main window > that don't resize whenever the label string resource is chaged. As a result > the operator has to resize the window the see the new label contents. I'm > not doing anything with the labels. Motif 1.1 under VMS on a VAXstation 3100. > Any help will be appreciated. I suspect this may depend on who their parent is, and here's why. According to Asente and Swick there are two ways you can play the resize game. In one the child requests a resize, the parent decides it's okay, returns Yes, and the child calls it's resize method. In the second the parent decides it's okay, reconfigures the widget, returns Done and the child doesn't have to do anything, since the resize method is called by the reconfigure. The catch here, and the reason it's important, is that the child never sees "Done", it always sees "Yes" in either case - so it needs to know which policy the widget-set is using. I could be wrong, but I think that Motif is not using either of these models consistantly - which could cause the problem you see. (Alternatively you might just have turned resizeWidth off in it or its parent.) Would anyone care to comment on which policy Motif uses? Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.