Page 1 of 1

[Solved] gadget size

Posted: Mon Jan 13, 2025 9:26 pm
by k3pto
I have a program that displays four Editor gadgets across my screen. The size of the gadgets is determined by using ExamineDesktops with
DesktopX(0), DesktopWidth(0) and DesktopHeight(0). I then calculate the size and position for each gadget using these values. On my desktop PC and my laptop, both running Windows 10 Pro, it works as expected. When I run it on another, newer, laptop (Windows 11) with a wider screen the gadgets are so much larger that I can see only about 1 and 1/2 gadgets.

Any ideas on what I need to do to fix this?

Re: gadget size

Posted: Mon Jan 13, 2025 9:30 pm
by Bisonte
Have you scaling your desktop on the newer laptop ? I think there is a 125% or 150% scale ....

Re: gadget size

Posted: Mon Jan 13, 2025 9:59 pm
by k3pto
Hi Bisonte,
Thank you for the reply. How do I scale it and how do I detect that it needs scaling?

Re: gadget size

Posted: Tue Jan 14, 2025 12:37 am
by HeX0R
See help file, especially DesktopScaled/DesktopUnscaled/DesktopResolution

Re: gadget size - Solved

Posted: Thu Jan 16, 2025 10:06 pm
by k3pto
Thank you Bisonte and HeXOR. I was not aware of the scaling functions - so many features to read about!