Jump to content

Recommended Posts

Posted

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...