Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!indri!uflorida!gatech!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: resizeWidth & resizeHeight of an AsciiStringWidget Message-ID: <8904201518.AA12816@expo.lcs.mit.edu> Date: 20 Apr 89 15:18:49 GMT References: <8904192223.AA02450@dinorah.wustl.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 18 > My problem is no matter how much I tried, I could not get > AsciiStringWidget to resize to cover the text size. It insists to be > one font high and 100 pixels long (at least it appear to be so). The text widget doesn't particullarly care what size it is. In fact it aways asks to be one row high by 100 pixels wide. What you need to do is force it to be larger. A good way to do this is to put it inside a VPaned widget. If you set the maximum pane size of the label to be its current height then the VPaned widget will force the text widget to fill all remaining vertical space. Then with a geometry specification in your resource file you can specify the size of your popup widget, and from this the size of your text widget will be automatically set to take up all space not used by the label. Isn't geometry management fun :-) Chris D. Peterson MIT X Consortium