Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Xt geometry question Message-ID: <8904181819.AA19131@expo.lcs.mit.edu> Date: 18 Apr 89 18:19:49 GMT References: <773@infovax.lan.informatik.tu-muenchen.dbp.de> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 > I want to position a widget in the middle of the screen. > I create a form widget as child of the toplevel widget. How do I get > the size of the form widget for calculating the postition of the > toplevel widget before realizing the toplevel widget. Can't be done, but you can get the information before the widget is mapped. If you set mapped_when_managed to FALSE on a shell widget. I will not be mapped when it is realized. This way you have relize the widget, get its size, relocated it, and then map it. This is a bit ugly, but it looks like it will do what you desire. Chris D. Peterson MIT X Consortium