[comp.windows.x.motif] Relocating dialogs

rich@MAX7.llnl.gov (Rich Mayfield) (02/27/91)

Couldn't find this in FAQ, but I imagine it's been covered:

Whenever a dialog window (BulletinBoardDialog in my case) is
managed and pops up, it comes up smack-dab in the middle of
my main application window.  I've tried a variety of things
but I can't relocate my dialog boxes. 

Any suggestions?

thanks in advance
rich

mgsmith@hplabsb.HP.COM (Michael Smith) (03/01/91)

>
>Whenever a dialog window (BulletinBoardDialog in my case) is
>managed and pops up, it comes up smack-dab in the middle of
>my main application window.  I've tried a variety of things
>but I can't relocate my dialog boxes. 
>

Make sure that the XmNdefaultPosition resource is set to False
before you try positioning the dialog box.  The default is True
so you will most likely need to change it using XtSetValues().

Mike Smith
HP Labs