Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ISI.COM!tsang From: tsang@ISI.COM (Kam C. Tsang) Newsgroups: comp.windows.x.motif Subject: dialog placement Message-ID: <9106132229.AA18003@phecda> Date: 13 Jun 91 22:29:09 GMT References: <1991Jun13.175137.4141@eagle.lerc.nasa.gov> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 17 > I'm trying to write a multi-window application. I'm using a dialog > shell to create the second window but I'm having a problem positioning > the dialog shell on the screen. The dialog shell is a child of the > toplevel but it will not take x and y coordinates on the screen. > > Does anyone know how to position a dialog on the screen? > Do I have to use two toplevels? The problem is likely to be in your window manager. Xt translates x and y coordinates in your resource settings to window manager *hints* on your dialog shell, which means that your window manager does not have to even pay attention to it. If you use mwm, try Mwm*clientAutoPlace: False in your .Xdefaults. If you use tvtwm, try not to have the line RandomPlacement in your .tvtwmrc, although this one I'm not sure about. -kam