Jump to content

Recommended Posts

Posted

In my code, I'm using GUICtrlCreateLabel to create a label and GUICtrlSetFont to set the font. Example...

$SELlbl = GUICtrlCreateLabel("Hello World", 8, 8, 286, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")

This works in my GUI unless display settings are changed in Windows 7 from 100% to 125-150%. Then the text is blown up and is misaligned with my GUI. 

Is there a simple way to ignore the display setting and force the font size?

Posted

Dpi awarnes 

Look in my signature. 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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...