Link_-_APO@cup.portal.com (04/06/91)
>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? The XmForm widget is a subclass of the XmBulletinBoard widget. XmForm inherits the XmNdefaultPosition resource from it. The OSF/Motif Programmer's Reference book states XmNdefaultPosition: Controls whether or not the BulletinBoard is automatically positioned by its parent. If True, and the parent of the BulletinBoard is a DialogShell, the BulletinBoard is centered within or around the parent of the DialogShell when the BulletinBoard is mapped and managed. If False, the BulletinBoard is not atuomatically positioned. >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? Is it possible? The only thing I recall about stacking order is from Young's book: "A window's stacking order can only be altered relative to its siblings." Needless to say, I am interested in any solutions to this question. -------------------------------------------------------------------------- CAE Link Flight link_apo@cup.portal.com Sandy Johan MS-580 sun!portal!cup.protal.com!link_apo 1077 E. Arques Sunnyvale, Ca 94088