Jump to content
Sign in to follow this  

GUI Editbox Linebreak

Recommended Posts


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!



Share this post

Link to post
Share on other sites

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.