Jump to content

Recommended Posts

Posted

This is the preliminary stages of a potential Automatic Per-Monitor v2 Scaling UDF. All of the math involved is not my strong area, so if anybody wants to help or contribute in any way that would always be appreciated.

Part of the magic in this is converting the TEXTMETRIC structure from the currently selected font (per-control) into a LOGFONT structure for easy font scaling with _WinAPI_CreateFontIndirect().

There likely are some limitations since this is very early stages.

Once you add the UDF:

#include "PMv2.au3"

Everything else becomes automatic. That is all that you need to do. All controls, fonts and GUI window will scale automatically on DPI changes.

Please feel free to share any feedback and feel free to contribute as well if you would like. :)

PMv2.zip

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...