Jump to content
Sign in to follow this  
saldous

Wrap text ina MsgBox?

Recommended Posts

saldous

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.

Share this post


Link to post
Share on other sites
Jos

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"

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Ram

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)

Share this post


Link to post
Share on other sites
jokke

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.

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.