lookfar Posted July 7, 2005 Posted July 7, 2005 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 Get the latest version of AutoEd and Koda FormDesigner here
blindwig Posted July 7, 2005 Posted July 7, 2005 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 ExitLoopWend<{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) My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
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