Sign in to follow this  
Followers 0
locoforcoco9

GUI Editbox Linebreak

4 posts in this topic

I'm new to this language (started yesterday), but not to scripting. All I need to know is if it's possible to have a linebreak in the GUIctrlCreateEdit() text field.

Oh, and by the way, this stuff is awesome!

Thanks,

~L

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Yes you should use the edit/input style $ES_MULTILINE. Post some code if you get stuck, and someone will likely assist you. => Oops I think I misunderstood.

Is this is what you want?

$hEdit = GUICtrlCreateEdit ( "Line 1" & @CRLF & "Line 2", 10, 10, 200, 100)

Another option would be to use a variable as the text field.

$sText = "Line 1" & @CRLF & "Line 2" & @CRLF & "Line 3"
$hEdit = GUICtrlCreateEdit ($sText, 10, 10, 200, 100)
Edited by czardas

Share this post


Link to post
Share on other sites

Thanks, that works wonders!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0