Problem with auto scaling on different resolution screens

Things you’d like to miss in the future...
twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Problem with auto scaling on different resolution screens

Post by twno1 »

Hi, this is a really great application for windows users and for me.

I've encountered a problem with auto scaling on different resolution screens.
So.... I have a 4k screen and a 1080 screen portrait, windows will automatically scale apps to 150% on 4k screen, letting two screens' apps look the same, this is the photo I took with phone.

Image

And this is the screenshot I took with PC.

Image

However, when using XYplorer, it'll look like this.

Image
Image



Any clue to solve this? Thanks for helping!!



Below is my PC display settings.

Image
Image

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

Hi and welcome to the club!

Sorry for the late reply, I was extremely busy with a recent new feature...

Looks like XY adjusts but should not adjust?

Is this when moving the window from one screen to the other?
Or when starting on each screen?
Or both?

In each screen please run this script through the XY address bar and post the results:

Code: Select all

screen;
Don

twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Re: Problem with auto scaling on different resolution screens

Post by twno1 »

Sorry for the late reply, I was extremely busy with a recent new feature...
It's fine. I'm looking forward to more awesome features!!
Looks like XY adjusts but should not adjust?
Well, I think it's the opposite.
From the screenshots we can tell that XY remains the same size whereas File Explorer scales up to 150% on the main screen.
Is this when moving the window from one screen to the other?
Or when starting on each screen?
Or both?
It happens when moving the window from one screen to the other.
I also noticed that it's related to the startup screen.
If XY starts on the main screen after login, it'll look normal on main screen but look big on the other.
However, if XY starts on the second screen after login, it'll look normal on second monitor but look small on the main one.
After startup, even if I close XY window after moving to the other screen and reopen won't change how it looks on the size of text.
In each screen please run this script through the XY address bar and post the results:

Code: Select all

screen;
Image

Image

Thanks again for helping!! :D

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

twno1 wrote: 17 Nov 2019 20:33 If XY starts on the main screen after login, it'll look normal on main screen but look big on the other.
That's why I said it adjusts when it should not adjust: It becomes big when should remain the same size.

In this screenshot of yours,
1) the left monitor is the primary one?
2) XY is okay on the left, too big on the right?
HMVMwyQ.jpg
HMVMwyQ.jpg (1.17 MiB) Viewed 2758 times
And when you run the screen; script on the right,
3) it returns this?
8e63N3a.png
8e63N3a.png (14.37 KiB) Viewed 2758 times

StevenDB
Posts: 2
Joined: 21 Nov 2019 08:47

Re: Problem with auto scaling on different resolution screens

Post by StevenDB »

Hi guys,

I'm experiencing the same thing: when moving XY to my big screen, the looks blow up, and it's kind of annoying (and the reason for not purchasing).
I ran the command (blown up version) and this is what I get back:
Screen

Virtual Screen: (-3440, 0) - (6440, 2000)

Screen.Width (screenW) = 3000(3000)
Screen.Height (screenH) = 2000(2000)
Current Monitor: 2 (Secondary)
Current Work Area: (-3440, 0) - (0, 1410)

Number of Monitors: 2
Monitor 1 Area: (0, 0) - (3000, 2000)
Monitor 1 Area Work: (0, 0) - (3000, 1948)
Monitor 2 Area: (-3440, 0) - (0, 1440)
Monitor 2 Area Work: (-3440, 0) - (0, 1410)

Startup Work Area: (0, 0) - (3000, 1948)
GetCursorPos = -2563, 145
Main Window: (-3451, 0) - (-1709, 1421)

Screen DPI: 180 (187,5%), twx: 8, stretch: 1,5
Screen Color Depth: 32
DPI awareness: Per monitor
On my laptop screen I get:
Screen

Virtual Screen: (-3440, 0) - (6440, 2000)

Screen.Width (screenW) = 3000(3000)
Screen.Height (screenH) = 2000(2000)
Current Monitor: 1 (Primary)
Current Work Area: (0, 0) - (3000, 1948)

Number of Monitors: 2
Monitor 1 Area: (0, 0) - (3000, 2000)
Monitor 1 Area Work: (0, 0) - (3000, 1948)
Monitor 2 Area: (-3440, 0) - (0, 1440)
Monitor 2 Area Work: (-3440, 0) - (0, 1410)

Startup Work Area: (0, 0) - (3000, 1948)
GetCursorPos = 306, 134
Main Window: (-12, -12) - (3012, 1960)

Screen DPI: 180 (187,5%), twx: 8, stretch: 1,5
Screen Color Depth: 32
DPI awareness: Per monitor
Any ideas on how to resolve this?
Steven

twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Re: Problem with auto scaling on different resolution screens

Post by twno1 »

1) the left monitor is the primary one?
Yes.
2) XY is okay on the left, too big on the right?
It depends on where XY started after login.
If XY first opened on main screen, it'd be okay on the left, too big on the right.
However, if XY first opened on second screen, it'd be okay on the right, too small on the left.
And when you run the screen; script on the right,
3) it returns this?
Yes, but when I took the screenshot, XY was first opened on the second screen.

So, I upload another set of screenshots in which XY was first opened on the main screen.

Main screen:

Image

Second screen:

Image

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

Ok, thanks for that info.

Now I just need to know exactly which messages are sent by Windows when the app moves over to the other monitor. So I added some logging. In the next beta version (v20.60.0001) please do your inter-monitor move, then paste this into the XY address bar, press enter, and post the results:

Code: Select all

dlog;

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

StevenDB wrote: 21 Nov 2019 08:52 I'm experiencing the same thing: when moving XY to my big screen...
Hi Steven, welcome to the club!

See my reply here:
viewtopic.php?p=174421#p174421

Don

twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Re: Problem with auto scaling on different resolution screens

Post by twno1 »

I move XY from main screen to second screen and move back to main screen.
Here's the log:

Code: Select all

Debug Log
XYplorer 20.60.0001  -  Windows 10 Professional, 64-bit, Release 1809, Build 17763.864  -  2019-11-21 23:29:10.071

XYplorer 20.60.0001  -  Windows 10 Professional, 64-bit, Release 1809, Build 17763.864  -  2019-11-21 23:29:10.071
----------------------------------------------------------------------------------------------------

2019-11-21 23:26:09.519 >> WM_ENTERSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-21 23:26:10.267 >> WM_EXITSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-21 23:26:12.552 >> WM_ENTERSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-21 23:26:14.030 >> WM_EXITSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-21 23:26:41.910 >> WM_ENTERSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-21 23:26:42.067 >> WM_DPICHANGED: 6291552, 1699316
2019-11-21 23:26:43.391 >> WM_EXITSIZEMOVE, monitor before: 0, monitor now: 0
2019-11-21 23:29:06.753 >> WM_ENTERSIZEMOVE, monitor before: 0, monitor now: 0
2019-11-21 23:29:06.942 >> WM_DPICHANGED: 9437328, 1699316
2019-11-21 23:29:07.743 >> WM_EXITSIZEMOVE, monitor before: 1, monitor now: 1

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Problem with auto scaling on different resolution screens

Post by highend »

That looks wrong... Shouldn't the events should show a switch from 0 to 1 and vice versa?
One of my scripts helped you out? Please donate via Paypal

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

highend wrote: 21 Nov 2019 16:47 That looks wrong... Shouldn't the events should show a switch from 0 to 1 and vice versa?
Yes, but that's rather my mistake. I learned something from it...

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

twno1 wrote: 21 Nov 2019 16:34 I move XY from main screen to second screen and move back to main screen.
Here's the log:
...
Thanks! I uploaded a potential fix.

Please, post the move-to-other-monitor log again, even if it is fixed. There is something I have to find out (some new log entry hopefully)...

twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Re: Problem with auto scaling on different resolution screens

Post by twno1 »

Code: Select all

Debug Log
XYplorer 20.60.0002  -  Windows 10 Professional, 64-bit, Release 1809, Build 17763.864  -  2019-11-22 04:01:36.405

XYplorer 20.60.0002  -  Windows 10 Professional, 64-bit, Release 1809, Build 17763.864  -  2019-11-22 04:01:36.405
----------------------------------------------------------------------------------------------------

2019-11-22 04:01:32.723 >> WM_ENTERSIZEMOVE, monitor before: 1, monitor now: 1
2019-11-22 04:01:32.886 >> WM_DPICHANGED: 6291552, 1699268, dpiX=96, dpiY=96
2019-11-22 04:01:33.318 >> WM_EXITSIZEMOVE, monitor before: 0, monitor now: 0
2019-11-22 04:01:34.281 >> WM_ENTERSIZEMOVE, monitor before: 0, monitor now: 0
2019-11-22 04:01:34.411 >> WM_DPICHANGED: 9437328, 1699268, dpiX=144, dpiY=144
2019-11-22 04:01:34.892 >> WM_EXITSIZEMOVE, monitor before: 1, monitor now: 1

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

Re: Problem with auto scaling on different resolution screens

Post by admin »

Okay, the log does not look as I hoped. ... no, it's alright, now I understand what's going on.

Anyway, uhm, is it fixed now?

twno1
Posts: 13
Joined: 13 Nov 2019 22:19

Re: Problem with auto scaling on different resolution screens

Post by twno1 »

Argh. Also when you resize the window?

Does it help to tick this in the Properties of XYplorer.exe:
Attachments
AutoScale.png
AutoScale.png (15.44 KiB) Viewed 2667 times

Post Reply