Sign in to follow this  
Followers 0
James

Add a break

7 posts in this topic

Its me again. Im still waiting for my other problem to be fixed, but I'm not so bothered about that yet.

Now this is for the splash screen:

$disclaimer = GUICtrlCreateInput("Secure_ICT does not take any responsibillity for any damage you may cause whilst using this program.", 72, 48, 529, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY))

[autoit]

All I need to know is how to add a break between each line.

E.G:

Secure_ICT does not take any responsibillity for any damage you may cause whilst using this program.

Will end up like:

Secure_ICT does not take any responsibillity for any damage you may cause whilst using this 
program.

More words more words etc etc

Share this post


Link to post
Share on other sites



$sText = 'Some Text' & @CRLF & 'Some Other Text' & @CRLF & 'Yet some more text'
MsgBox(64, 'Info:', $sText)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Use GUICtrlCreateEdit instead, as Input is for single line only.

Use @CRLF to "break the it up" in multiple lines, as shown by SmOke_N.

And consider using continuation lines to avoid long lines in the code...

$text = "line 1" & @CRLF & _
"line 2" & @CRLF & _
"line 3"

MsgBox(64, "", $text)

Share this post


Link to post
Share on other sites

This method works for the splash screen I have, but not for the text box.

He told you to change the GUICtrlCreate "input" to "edit"

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

This method works for the splash screen I have, but not for the text box.

What do you mean by text box?


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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