Page 1 of 1

Dialog positions

Posted: Sat Sep 08, 2012 12:25 pm
by Wolfgang Ciriack
Hello,
when i open my main dialog on a second monitor, how can i force the other dialogs to open centered on the same monitor ?
When i no open a dialog, it is always opened on monitor 1.

Re: Dialog positions

Posted: Sat Sep 08, 2012 6:52 pm
by rdonnay
Try this:

DC_CenterObject( oDialog2, oDialog1 )

Re: Dialog positions

Posted: Sun Sep 09, 2012 12:14 am
by Wolfgang Ciriack
Hi Roger,
yes, i do this now. But some functions like DC_GuiAlert, dc_WaitOn are still araising on the first monitor.

Re: Dialog positions

Posted: Sun Sep 09, 2012 7:27 am
by rdonnay
I think that I can add some code to these functions to fix this problem.

Re: Dialog positions

Posted: Sun Sep 09, 2012 2:46 pm
by Wolfgang Ciriack
Hi Roger,
that would be nice.

Re: Dialog positions

Posted: Mon Sep 10, 2012 8:05 pm
by rdonnay
Here are the fixes.

The dialogs will be centered in their OWNER.
The OWNER defaults to SetAppWindow().

Copy the files to \exp19\source\dclipx and rebuild dclipx.dll by running build19_sl1.bat

This fix will be in build 258.