Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!mit-eddie!bbn.com!nic!hri!sparc20!rudolph From: rudolph@sparc20.hri.com (David Rudolph) Newsgroups: comp.windows.x.motif Subject: Re: interactive placement of pop-ups & precendence of main app window Message-ID: <1991Apr16.131440.16590@hri.com> Date: 16 Apr 91 13:14:40 GMT References: <12110005@hpfcbig.SDE.HP.COM> Sender: news@hri.com (News Admin) Reply-To: rudolph@sparc20.hri.com (David Rudolph) Organization: Horizon Research Lines: 27 In article <12110005@hpfcbig.SDE.HP.COM>, koff@hpfcbig.SDE.HP.COM (Caroline Koff) writes: > Skip Montanaro (montnaro@spyder.crd.ge.com) writes: > > Unfortunately, all dialog pop-ups come up initially smack dab in the middle > > of the main window. I've read through the mwm and FormDialog (and > > superclasses) man pages and can't find any resource that seems to control > > this behavior. Where am I going wrong? > > Try setting the XmNdefaultPosition to False when you create the dialog > boxes, as in XtSetArg(args[i], XmNdefaultPosition, False). Then to > position your dialog boxes on your own, use XtMoveWidget call. > > --Caroline Koff When I tried setting XmNdefaultPosition to false, the window came up at (0,0). Since I have interactivePlacement set to True, I expected that I would be able to position the window with the mouse. Any ideas why this wasn't the case? ---------------------------------------------------------------------------- David Rudolph | phone: (617) 466-8370 Horizon Research, Inc. | email: rudolph@hri.com ----------------------------------------------------------------------------