Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DPI aware, finally
Message
From
15/09/2022 10:38:27
 
 
To
13/09/2022 05:35:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01684951
Message ID:
01684966
Views:
82
Likes (1)
Hi Antonio,

So I figured out that my app was partially responding to the DPI manifest, but many pieces like menus, ole controls (from dbi-tech) and some forms weren't, so it looked weird with small controls but big fonts. And some customers were complaining that at really high resolutions, the forms were so small they could barely see them. So I decided to use your suggestion and make it totally DPI ~ UNAWARE. Now it looks a little fuzzy if the screen is magnified, but at least it's consistent throughout. Thanks for your help.

Luke

>Hi All,
>
>I've finally figured out how to make my app DPI aware by accessing the property sheet of the exe>Compatibility>Change settings for all users>Change high DPI settings and checking the Program DPI box>set Use the DPI...to I open this program>check Override... and set to System. I've tried the manifest route, all kinds of different settings, never could get it to work. But this works! What I'd like to do now is to change all these settings programmatically via Win API, and not have to tell my users to go through what I've just described above. Does anyone know how I can do that?
>
>Thanks.
>
>Luke

Luke, I've been using manifest files in my VFP9 projects with no problems at all, and being able to make the applications fully DPI-Aware (not just pretending to be DPI-Aware).

Nevertheless, here is a link to an article on what you were asking for (obviously, untested...):

https://docs.microsoft.com/pt-pt/archive/blogs/technet/mspfe/disabling-dpi-scaling-on-windows-8-1-the-enterprise-way
Previous
Reply
Map
View

Click here to load this message in the networking platform