Sign in to follow this  
Followers 0
Romm

GUICtrlCreateEdit -> new line?

3 posts in this topic

$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 C

And i want

03:01 Found A

03:01 Found B

03:01 Found C

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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]

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