| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| booingthetroll Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 30 Aug 2011
 Posts: 114
 Location: ::1
 
 | 
			
				|  Posted: Thu May 16, 2013 4:47 pm    Post subject: AutoSize on Edit controls |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Thu May 16, 2013 4:57 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| booingthetroll Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 30 Aug 2011
 Posts: 114
 Location: ::1
 
 | 
			
				|  Posted: Thu May 16, 2013 6:19 pm    Post subject: |   |  
				| 
 |  
				| Oh, wait... Thanks for the reply, but how do I make it allow multiple lines? :/ |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Thu May 16, 2013 7:13 pm    Post subject: |   |  
				| 
 |  
				| Multilines? You're confused with Memo.
 _________________
 
 I'm rusty and getting older, help me re-learn lua. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| booingthetroll Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 30 Aug 2011
 Posts: 114
 Location: ::1
 
 | 
			
				|  Posted: Thu May 16, 2013 9:05 pm    Post subject: |   |  
				| 
 |  
				| Wut? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Fri May 17, 2013 3:03 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| booingthetroll Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 30 Aug 2011
 Posts: 114
 Location: ::1
 
 | 
			
				|  Posted: Fri May 17, 2013 9:33 am    Post subject: |   |  
				| 
 |  
				| ;_; There's no way to allow users to input multiple lines? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Fri May 17, 2013 9:34 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| booingthetroll Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 30 Aug 2011
 Posts: 114
 Location: ::1
 
 | 
			
				|  Posted: Fri May 17, 2013 9:44 am    Post subject: |   |  
				| 
 |  
				| Oh. I thought he was making a joke about fish... Thanks. Sorry to waste your time... :/ |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mgr.inz.Player I post too much
 
  Reputation: 222 
 Joined: 07 Nov 2008
 Posts: 4438
 Location: W kraju nad Wisla. UTC+01:00
 
 | 
			
				|  Posted: Fri May 17, 2013 3:42 pm    Post subject: |   |  
				| 
 |  
				| Memo Nemo   _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Fri May 17, 2013 3:47 pm    Post subject: |   |  
				| 
 |  
				| Finding Memo Cheat Engine edition.
 _________________
 
 I'm rusty and getting older, help me re-learn lua. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |