Jump to content

max lines in edit control ?


Recommended Posts

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

Link to comment
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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...