Keep dialogs inside visible monitor areas

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
tonifelfe
Posts: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »

yes

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Keep dialogs inside visible monitor areas

Post by admin »

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

tonifelfe
Posts: 46
Joined: 17 Jun 2009 14:03
Location: Win10 Pro, 64-bit, Version 22H2, Screen DPI: 120 (125%)

Re: Keep dialogs inside visible monitor areas

Post by tonifelfe »


admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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:
To see the attached files, you need to log into the forum.

Post Reply