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 


Mess up scaling and position of form

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

Joined: 30 Dec 2023
Posts: 28

PostPosted: Mon Jul 29, 2024 6:41 pm    Post subject: Mess up scaling and position of form Reply with quote

So I have a form with button, txtbox, etc. That is scaled and position properly. If my desktop monitor is set to 100% scale it works perfectly fine but when it's was set 120, 150 or anything not 100% the position and scaling are mess up. Can someone help me to fix it to make scale automatically on any monitor scaling?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Jul 30, 2024 1:23 am    Post subject: Reply with quote

Rightclick a control (and if that fails the control in the treeview on the top left) and open the anchor editor

there for each control set where it should be according to other controls or the form itself

e.g a label at the top left of the form. then a button under the label in the center of the form

then set autosize of the form to true and it'll resize so all controls are within it's area

this way forms and controls get resized properly depending on the system dpi

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
dan013
Cheater
Reputation: 0

Joined: 30 Dec 2023
Posts: 28

PostPosted: Sun Aug 04, 2024 1:21 am    Post subject: Reply with quote

Dark Byte wrote:
Rightclick a control (and if that fails the control in the treeview on the top left) and open the anchor editor

there for each control set where it should be according to other controls or the form itself

e.g a label at the top left of the form. then a button under the label in the center of the form

then set autosize of the form to true and it'll resize so all controls are within it's area

this way forms and controls get resized properly depending on the system dpi

I see, thanks alot
Back to top
View user's profile Send private message
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