Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Windows 11 and fixDPI()

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
paul44
Expert Cheater
Reputation: 3

Joined: 20 Jul 2017
Posts: 227

PostPosted: Wed Nov 04, 2026 12:57 pm    Post subject: Windows 11 and fixDPI() Reply with quote

see images: [ https://ibb.co/album/Jv9XBL ]

first: on Windows 10 no problems whatsoever
(or at least as far as i know)

What happens: when 'rebuilding' the form (= rerun script that builds the form), it'll start "deforming" the form as shown in image.This ONLY happens when using the fixDPI() function ?!

Obvious Q: how to fix this, if any ?

I could not find a solution here, but google suggested:
a) Change high DPI settings via ce_exe properties: nogo
=> i can not ask my users to do this anyways.
b) Inform CE your initial monitor scaling:
myForm.DesignTimePPI = 96
...
-- Forces Cheat Engine to scale fonts and controls correctly
myForm.fixDPI()
=> does not work either.

ps: atm i've just disabled it, and do not have any issues with it. In fact, the suggestion to use this fn came from one of my users (having a 4K monitor ~ i'm "just" at 1920x1280)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 26021
Location: The netherlands

PostPosted: Thu Nov 05, 2026 5:52 am    Post subject: Reply with quote

use anchoring.
Top Anchor, Left anchor, borderspacing
Connect one control to the one in the top, then the other one under there, or right of it, and autosize the window

also, is your form a frm/lfm or .lua code

(and your issue seems more like a different font for the header and the text at the bottom)

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites