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 


AutoSize on Edit controls

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

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Thu May 16, 2013 4:47 pm    Post subject: AutoSize on Edit controls Reply with quote

Hi. Sorry, but I've been wondering how I would set the AutoSize property for Edit controls. I want to do this manually with Lua and I can't seem to find a way by ctrl-Fing through main.lua. How would I do this?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu May 16, 2013 4:57 pm    Post subject: Reply with quote

Note that height is depended on Font size.
Anyway to set the AutoSize Property do this
Code:
setProperty(UDF1_CEEdit1 , "AutoSize", "True") --edit it according to what u want

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
booingthetroll
Expert Cheater
Reputation: 0

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Thu May 16, 2013 6:19 pm    Post subject: Reply with quote

Oh, wait... Thanks for the reply, but how do I make it allow multiple lines? :/
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu May 16, 2013 7:13 pm    Post subject: Reply with quote

Multilines?
You're confused with Memo.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
booingthetroll
Expert Cheater
Reputation: 0

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Thu May 16, 2013 9:05 pm    Post subject: Reply with quote

Wut?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri May 17, 2013 3:03 am    Post subject: Reply with quote

Edit controls don't have multiline property.


Label can be multiline, when \n used:
Code:
control_setCaption(UDF1_CELabel1,'TEST\nsecond line\nthird line')

_________________
Back to top
View user's profile Send private message MSN Messenger
booingthetroll
Expert Cheater
Reputation: 0

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Fri May 17, 2013 9:33 am    Post subject: Reply with quote

;_; There's no way to allow users to input multiple lines?
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: Fri May 17, 2013 9:34 am    Post subject: Reply with quote

Use a memo, not an edit
_________________
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
booingthetroll
Expert Cheater
Reputation: 0

Joined: 30 Aug 2011
Posts: 114
Location: ::1

PostPosted: Fri May 17, 2013 9:44 am    Post subject: Reply with quote

Oh. I thought he was making a joke about fish... Thanks. Sorry to waste your time... :/
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri May 17, 2013 3:42 pm    Post subject: Reply with quote

Memo Nemo Cool
_________________
Back to top
View user's profile Send private message MSN Messenger
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri May 17, 2013 3:47 pm    Post subject: Reply with quote

Finding Memo
Cheat Engine edition.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
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