Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!mcvax!unido!ztivax!tumuc!lan!stumpf From: stumpf@lan.informatik.tu-muenchen.dbp.de (Markus Stumpf) Newsgroups: comp.windows.x Subject: Xt geometry question Message-ID: <773@infovax.lan.informatik.tu-muenchen.dbp.de> Date: 4 Apr 89 11:54:50 GMT Reply-To: stumpf@lan.informatik.tu-muenchen.dbp.de (Markus Stumpf) Organization: Inst. fuer Informatik, TU Muenchen, W. Germany Lines: 23 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. I made an XtRealize(form); /* get geometry stuff */ XtManageChild(form); XtRealize(toplevel); but I get an Protocol Error on XCreateWindow. Thanks \Maex +------------------------------------------------------------------------------+ | Markus Stumpf | | TU Muenchen local: lan.informatik.tu-muenchen.dbp.de | | Inst. f. Informatik DFN: stumpf@{local} | | Arcisstrasse UUCP: stumpf%{local}@unido.uucp | | D-8000 Muenchen ARPA/CS: stumpf%{local}@relay.cs.net | | West Germany BITNET: infrza02@dm0tui1s.bitnet | +------------------------------------------------------------------------------+