Jump to content
Sign in to follow this  
Tagor

Enter in a label

Recommended Posts

Tagor

Is there a way to put an enter in a label? Or do you need to create a second label?

Share this post


Link to post
Share on other sites
buzz44

@CR

Carriage return, Chr(13); sometimes used for line breaks.

@LF

Line feed, Chr(10); typically used for line breaks.

@CRLF

= @CR & @LF ;occasionally used for line breaks.

#include <GUIConstants.au3>

GUICreate("My GUI") ; will create a dialog box that when displayed is centered

GUICtrlCreateLabel ("See" & @LF & "what" & @LF & "I" & @LF & "mean...",  10, 30, 50, 100)

GUISetState ()

While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

qq

Share this post


Link to post
Share on other sites
Tagor

Thanks, I forgot the '&', so it didn't work :)

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  

×