Jump to content

Recommended Posts

Posted (edited)

Hi All, quick question, please refer to the images below, does anyone know why my button text(& label text, not shown) would be being clipped on one PC's (1)& not on all others(4)?

I checked the "Push Button Styles" but didn't see anything related to my issue.

 

GOOD...

UWGood1-1.jpg

 

BAD..

UWBad1.jpg

 

It's strange as I have only ever seen this on 1 PC, & it occurs on all my Autoit GUI scripts run on this PC, so my concern is, has anyone else seen this phenomena. :

Edited by VenusProject2
  • Solution
Posted

Look in my signature for DPI Awareness

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

Posted

Thank you mLipok for steering me in the right direction, so I think I did solve the issue & it is related to the DPI settings in

HKEY_CURRENT_USERControl PanelDesktop

Key: LogPixels

Values:

 

96   –   Smaller 100%

120   –  Medium 125%

144  -   Larger 150%

192   –   Extra Large 200%

240  –  Custom 250%

288  –  Custom 300%   – 

384  –  Custom 400%

480  –   Custom 500%

 

In windows 7 (not 8)where I experienced the issue it only occurred with DPI 120 = Mediun 125%  so I simply used

$iSizeDPI = RegRead("HKEY_CURRENT_USER\Control Panel\Desktop\", "LogPixels");If 120 have script change font size
Func _CtrlFontSet(); for gui labels & buttons
    If @OSVersion = "Win_7" And $iSizeDPI = 120 Then
        GUICtrlSetFont(-1, 7, $FW_NORMAL, 0, "")    
        EndIf
EndFunc;==>_CtrlFontSet

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