[Solved] gadget size

Everything else that doesn't fall into one of the other PB categories.
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

[Solved] gadget size

Post 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?
Last edited by k3pto on Sat Jan 18, 2025 10:55 pm, edited 1 time in total.
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: gadget size

Post by Bisonte »

Have you scaling your desktop on the newer laptop ? I think there is a 125% or 150% scale ....
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

Re: gadget size

Post by k3pto »

Hi Bisonte,
Thank you for the reply. How do I scale it and how do I detect that it needs scaling?
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: gadget size

Post by HeX0R »

See help file, especially DesktopScaled/DesktopUnscaled/DesktopResolution
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

Re: gadget size - Solved

Post by k3pto »

Thank you Bisonte and HeXOR. I was not aware of the scaling functions - so many features to read about!
Post Reply