Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!crdgw1!montnaro From: montnaro@spyder.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.x.motif Subject: Re: interactive placement of pop-ups & precendence of main app window Message-ID: Date: 9 Apr 91 02:39:53 GMT References: Sender: news@crdgw1.crd.ge.com Reply-To: montanaro@crdgw1.ge.com (Skip Montanaro) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 45 In-reply-to: montnaro@spyder.crd.ge.com's message of 4 Apr 91 12:41:49 GMT In article I wrote: I am using a number of FormDialog widgets as independent windows in an application (Motif 1.1, OpenWindows, mwm). When the application starts, the application main window is placed interactively (it's attached to the cursor), since mwm*interactivePlacement is true. 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? Several people responded to my posting, all referring me to the defaultPosition resource. When set to false, the window manager is supposed to obey the x and y resource settings. That is, in fact, what happens. Thanks to all who replied. In rereading my original posting though, I realize I did not describe clearly the desired behavior. I want to interactively place the pop-ups the first time they are realized. That is, I'd like the pop-up's initial placement to be interactive (attached to the cursor), just like the main application window. Is there not some way to do this? None of the dialogs I'm referring to are modal. I expect the user to keep them popped up for an extended period of time, which was why I asked the second question: Another problem I'm having is trying to ever get the application's main window to stack above the various pop-ups that are visible. Is there a way to do it? Perhaps there's a different top-level widget I should be using than a FormDialog? I realize that windows can get lost in the stacking order if they are completely independent. I do like the behavior that all the application's windows pop to the top of the stack when one is raised. Is there some reason the main application window is constrained to always be below the popups, other than the fact that it is contrary to the Motif Style Guide? It seems peculiar, given the fact that just about everything else about Motif can be customized. (BTW, that's the main reason I initially liked mwm better than olwm. I could make mwm "feel" more like SunView than olwm :-). Thanks, -- Skip (montanaro@crdgw1.ge.com)