[DPI] DateGadget with CheckBox is not scaled correctly
Posted: Wed Mar 16, 2022 11:55 am
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.



I'm using PureBasic 5.73 LTS (x86) on Windows 10 Version 21H2
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



I'm using PureBasic 5.73 LTS (x86) on Windows 10 Version 21H2