Sign in to follow this  
Followers 0
lookfar

max lines in edit control ?

2 posts in this topic

cannot this control hold more than 3 lines ?

#include <GUIConstants.au3>

GUICreate("My GUI edit")

$myedit=GUICtrlCreateEdit ("First line"& @CRLF,

176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL)

GUISetState ()

GUICtrlSetData ($myedit, "Second line"& @CRLF,"third line"& @CRLF,"no fourth Line")

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

Share this post


Link to post
Share on other sites



cannot this control hold more than 3 lines ?

#include <GUIConstants.au3>

GUICreate("My GUI edit")

$myedit=GUICtrlCreateEdit ("First line"& @CRLF,

176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL)

GUISetState ()

GUICtrlSetData ($myedit, "Second line"& @CRLF,"third line"& @CRLF,"no fourth Line")

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

<{POST_SNAPBACK}>

Check the manual on GUICtrlSetData, you're not using it properly.

Either this:

GUICtrlSetData ($myedit, "Second line"& @CRLF & "third line" & @CRLF & "no fourth Line")

or this:

GUICtrlSetData ($myedit, "Second line"& @CRLF, 1) 
GUICtrlSetData ($myedit, "third line"& @CRLF, 1) 
GUICtrlSetData ($myedit, "no fourth Line" & @CRLF, 1)

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