Page 1 of 1

[DPI] DateGadget with CheckBox is not scaled correctly

Posted: Wed Mar 16, 2022 11:55 am
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

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

Posted: Thu Feb 16, 2023 6:08 pm
by Fred
Unfortunately, it's a Windows issue as we don't ownerdraw anything in the DateGadget()