Jump to content

Wrap text ina MsgBox?


Recommended Posts

  • Developers

If I have a lot of text to display in a MsgBox, how to I make it wrap or insert a return at the end of a line, at the moment I get one long box with all the text on one line.

thanks.

"Line1" & @lf & "line2"

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

If I have a lot of text to display in a MsgBox, how to I make it wrap or insert a return at the end of a line, at the moment I get one long box with all the text on one line.

thanks.

Put " & @LF & " in between the word you want to display in the next line...!!

something like this:

$test= "This" & @LF & "is" & @LF & "a Test message."
MsgBox (0, "0", $test)
Link to comment
Share on other sites

And if you dont want the text to go for ever inn one line do this.

Msgbox(64,'Infobox with x# of lines.',  'Mytext goes here'&@CRLF& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text'&@crlf& _
                    'someotherline of text')
Edited by jokke
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
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
 Share

  • Recently Browsing   0 members

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