Path: utzoo!utgpu!attcan!uunet!lll-winken!ames!mailrus!uflorida!gatech!udel!burdvax!coltoff From: coltoff@PRC.Unisys.COM (Joel Coltoff) Newsgroups: comp.windows.x Subject: Geometry management philosophy/procedure Message-ID: <8808@burdvax.PRC.Unisys.COM> Date: 6 Jan 89 21:39:31 GMT Distribution: na Organization: Unisys/Paoli Research Center, Paoli, PA 19301 Lines: 30 I have a question or two about geometry management. The interface we are using has a form that contains three horizontally stacked text widgets and another form at the bottom of the whole mess. In the bottom form are a row of label widgets and two row of buttons. There are 10 buttons placed side by side. What I want to happen is the that the size of the application is controlled by the text in the largest button. That means make all the buttons the same size then make the text widgets the same size as the form that encloses the buttons. My problem is that I'm not sure how to do this properly. What I did was realize the entire widget tree with mappedWhenManaged set to false. Once all the widgets are realized I find the largest button and then set sizes and positions of all the other widgets. When this is done I do XtMapWidget(toplevel). Is this the correct approach? If not what is a better way to do it? Another feature I would like that complicates things a little more is have my text widget be a fixed number of lines in height instead of a fixed number of pixels. Even if it is a hack under R3 to get the the font a widget is using it can be done. I can then configure the widgets to the new size. It get a little messy because the y coordinates of the widgets below the current one are likely to change based on the number of lines displayed. Any hints on a good way to do this? Thanks in advance. -- - Joel {psuvax1,sdcrdcf}!burdvax!coltoff (UUCP) coltoff@burdvax.prc.unisys.com (ARPA)