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 


Centering text in a panel or edit box

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

Joined: 08 Oct 2012
Posts: 366

PostPosted: Sat Jul 29, 2017 11:10 pm    Post subject: Centering text in a panel or edit box Reply with quote

What, if any, would be the code to center text vertically in a panel, or text box?
test.Caption = "2" prints the 2, but there is space above the 2, but not below the 2 in the panel.

Additionally is there a command to change a panel color from the default grey to say white?
Back to top
View user's profile Send private message Yahoo Messenger
panraven
Grandmaster Cheater
Reputation: 26

Joined: 01 Oct 2008
Posts: 667

PostPosted: Sun Jul 30, 2017 1:53 am    Post subject: Reply with quote

May have a look at mgr.inz.Player's Anchor example (seems request at that time, but it actually work now)
http://forum.cheatengine.org/viewtopic.php?t=570778#5515444

For color,
common color
https://msdn.microsoft.com/en-us/library/aa358802(v=vs.85).aspx

system color
https://msdn.microsoft.com/VBA/Language-Reference-VBA/articles/system-color-constants
with this adjustment (vbInfoBackground 0x80000018):
panel.Color = 0x80000018 | 0xffffffff00000000

_________________
- Retarded.
dropbox
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