DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Center position of SUD-windows on my screen in DIAdem?

Hi, I am using DIAdem 2021 and have created some SUD-windows for a script. 

When working, I have multiple display monitors, with DIAdem on the right screen. But when the SUD-windows are activated from the DIAdem-script, they all appear on my left hand screen (main screen "1").

I have tried to change the "Properties" of my SUD-windows (Dlg1, Dlg2 ...) from "-1" on "Top" and "Left" but no other values does any difference to the position on my screens. It does not even change position on the left hand screen.

 

Is there any way to just position the SUD-window (Dlg1) in the center on the same screen as DIAdem software?

 

Thanks in advance!

/Mikael

0 Kudos
Message 1 of 2
(95 Views)

Just tried that but and SUD is shown on the same monitor as DIAdem. Even when I move the open dialog to the other monitor it is shown on the original one when called next time. Also setting top and left properties to -1 causes the dialog open centered.

 

You can try to position the SUD using the functions AppRectangleGet (which delivers the position of DIAdem itself), MapXPixelToDlu and MapYPixelToDlu (convert coordinates specified in pixels into dialog units) and Move (to move the dialog in a certain direction) but by default the dialog shpuld be shown as described above.

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 2 of 2
(59 Views)