Make DPI aware do all the work

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Make DPI aware do all the work

Post by BarryG »

Per my topic here -> https://www.purebasic.fr/english/viewtopic.php?t=86287

My app needs basically a total rewrite of all GUI and mouse code to make it DPI-aware, which is too much for me to bother with. Can PureBasic be made to do the workarounds that are posted in my link? It seems enabling DPI awareness affects the mouse commands, window commands, and desktop commands.

It's too much work to fix my code just because I flicked a switch in Compiler Options, and even if the code is short, we still need to manually fix it by wrapping existing commands with another command (see my first post there and Wombat's solution, as an example). Wrapping is never a good fix, and it means the existing commands are basically broken as soon as DPI awareness is enabled.
User avatar
idle
Always Here
Always Here
Posts: 5896
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Make DPI aware do all the work

Post by idle »

it should be possible to do with macros but it'd be a lot of work to wrap it.
Post Reply