[DPI] DateGadget with CheckBox is not scaled correctly

Just starting out? Need help? Post your questions and find answers here.
nicoh
User
User
Posts: 26
Joined: Thu Sep 19, 2019 10:44 am

[DPI] DateGadget with CheckBox is not scaled correctly

Post by nicoh »

Hi,

when DPI scaling is enabled, the CheckBox of a DateGadget is not scaled correctly.

When trying to reproduce this, do not forget to turn on the "DPI Aware" compiler option.

Code: Select all

OpenWindow(0, 0, 0, 150, 75, "DateGadget", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
DateGadget(0, 10, 10, 130, 25, "", Date(), #PB_Date_CheckBox)
TextGadget(1, 10, 45, 130, 20, "DPI: " + StrF(DesktopResolutionX()))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow  
Image
Image
Image

I'm using PureBasic 5.73 LTS (x86) on Windows 10 Version 21H2
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [DPI] DateGadget with CheckBox is not scaled correctly

Post by Fred »

Unfortunately, it's a Windows issue as we don't ownerdraw anything in the DateGadget()
Post Reply