01-30-2025 09:51 AM
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
02-04-2025 04:12 AM
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.