Keep dialogs inside visible monitor areas

Things you’d like to miss in the future...
Post Reply
tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Keep dialogs inside visible monitor areas

Post by tonifelfe »

Ctrl-Q dialogs position is out of the visible are on 2nd monitor. Resizing the dialog fixes this but may be you can prevent this behaviour at the beginning.

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

You mean it restores its position on the 2nd monitor even if the 2nd monitor is off?

tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

no, both monitors are on. top left corner is outside the screen.

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

The idea is that it restores its previous position. So that does not work?

No, that top left corner should be inside the screen. Could you do this, please:

Code: Select all

screen;

tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

I have tried. Opened XYplorer (on 1st screen), opened Ctrl-Q window (on 2nd screen?!), "screen;"-command - XYplorer crashes. No error message.

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

No, I meant do screen; without any Ctrl-Q window opened. I just want to see the properties of your monitors.

But by doing what you did you found a good bug! :bug: Thanks for that, fix is coming...

tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

Screen
XYplorer 20.80.0300 - Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.657

Virtual Screen: (-1366, 0) - (3046, 1055)

Screen.Width (screenW) = 1680 (1680)
Screen.Height (screenH) = 1050 (1050)
Current Monitor: 2 (Primary)
Current Work Area: (0, 0) - (1680, 1010)

Number of Monitors: 2
Monitor 1 Area: (-1366, 287) - (0, 1055) = 1366x768
Monitor 1 Area Work: (-1366, 287) - (0, 1015)
Monitor 2 Area: (0, 0) - (1680, 1050) = 1680x1050
Monitor 2 Area Work: (0, 0) - (1680, 1010)

Startup Work Area: (0, 0) - (1680, 1010)
GetCursorPos = 460, 95
XY Main Window: (-8, -8) - (1688, 1018) = 1696x1026

Screen DPI: 96 (100%) twx: 15 (15) stretch: 1 sLF: 1
Screen Color Depth: 32
DPI awareness: Per monitor
Auto Scaling: Yes

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

So the dialog is positioned outside of the left monitor, so its horizontal position is smaller than -1366?

tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

yes

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

Weird. I cannot see how this is possible.

What when you drag the dialog to a good position (so it's completely visible), then close it, then re-show it? It does not remember that position?

tonifelfe
Posts: 38
Joined: 17 Jun 2009 14:03

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

Drawing a borderline snaps the dialog into visible canvas - but the dialog doesnt remember this nice position.

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

Do you have a screenshot? It might give me an idea...


admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

Okay, that helped. Should be fixed in next version.

BTW, next time please attach images within the forum, like this:
Attachments
XYForumAttachImage.png
XYForumAttachImage.png (15.83 KiB) Viewed 4234 times

Post Reply