Romm Posted January 15, 2008 Posted January 15, 2008 $hEdit = GUICtrlCreateEdit("", 180, 13, 200, 154, $ES_MULTILINE+$ES_AUTOVSCROLL+$WS_VSCROLL ) GUICtrlSetColor(-1,0x633724) _GUICtrlEdit_InsertText ($hEdit, @HOUR & ":" & @MIN& " Found A", 0) _GUICtrlEdit_InsertText ($hEdit, @HOUR & ":" & @MIN& " Found B", 0) _GUICtrlEdit_InsertText ($hEdit, @HOUR & ":" & @MIN& " Found C ", 0) When i ran script i got something like this: 03:01 Found A 03:01 Found B 03: 01 Found CAnd i want 03:01 Found A 03:01 Found B 03:01 Found C
GaryFrost Posted January 15, 2008 Posted January 15, 2008 add @CRLF to the end of the the text Example: _GUICtrlEdit_InsertText ($hEdit, @HOUR & ":" & @MIN& " Found A" & @CRLF, 0) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
star2 Posted January 15, 2008 Posted January 15, 2008 (edited) here you go just use the @crlf #include <GuiConstants.au3> #include <GuiEdit.au3> ; ================= main GUI ==================== $Main = GUICreate ("test", 200,150 ) $hEdit = GUICtrlCreateEdit("", 10, 10, 180, 100, $ES_MULTILINE+$ES_AUTOVSCROLL+$WS_VSCROLL ) GUICtrlSetColor(-1,0x633724) _GUICtrlEdit_InsertText ($hEdit, @HOUR & ":" & @MIN& " Found A" & @CRLF & @HOUR & ":" & @MIN& " Found B" & @CRLF & @HOUR & ":" & @MIN& " Found C ", 0) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Edit: Dam my slow answer !! GaryFrost gave you the answer when I was posting !! Edited January 15, 2008 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now