curlett@hornet.lerc.nasa.gov (06/14/91)
Hi,
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?
I'm using Motif 1.0 on an IBM RS/6000.
Any help would be appreciated.
Brian
-------------------------------------------------------------------------------
Brian P. Curlett
Aeropropulsion Analysis Office
NASA Lewis Research Center
curlett@hornet.lerc.nasa.gov
(216) 977-7041
-------------------------------------------------------------------------------
--
-------------------------------------------------------------------------------
Brian P. Curlett
Aeropropulsion Analysis Office
NASA Lewis Research Center
curlett@hornet.lerc.nasa.gov
(216) 977-7041
-------------------------------------------------------------------------------tsang@ISI.COM (Kam C. Tsang) (06/14/91)
> 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