THEDEFILEDONE Posted August 11, 2009 Share Posted August 11, 2009 (edited) Im looking for a way to get multiple lines in an edit box(right when it is created). I know you can do some --> "something", & @CLRF & "something else", but that is not very realistic, as I have a few hundred lines. I've been looking, and looking, and looking for a few hours. Any and all help will be greatly appreciated!!! I also want it with only vertical scroll, and text centered, but I can do that solo "). EDIT I just remembered that a message box would be awesome as well, but I can not figure out how to put in the vertical scroll bar. I prefer an edit box, because one can copy out of, and paste into. Edited August 11, 2009 by THEDEFILEDONE Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 11, 2009 Share Posted August 11, 2009 Im looking for a way to get multiple lines in an edit box(right when it is created). I know you can do some --> "something", & @CLRF & "something else", but that is not very realistic, as I have a few hundred lines. I've been looking, and looking, and looking for a few hours. Any and all help will be greatly appreciated!!! I also want it with only vertical scroll, and text centered, but I can do that solo "). EDIT I just remembered that a message box would be awesome as well, but I can not figure out how to put in the vertical scroll bar. I prefer an edit box, because one can copy out of, and paste into. Pack whatever you want into a string variable and use that for the initial text of the control: #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> $sMultiLine = "" For $n = 1 To 100 $sMultiLine &= "This is line " & $n & @CRLF Next $hGUI = GUICreate("My GUI edit", 200, 200) $ctrlEdit1 = GUICtrlCreateEdit($sMultiLine, 10, 10, 180, 180, $ES_AUTOVSCROLL + $WS_VSCROLL) GUISetState() ControlSend($hGUI, "", $ctrlEdit1, "{END}") Do Until GUIGetMsg() = $GUI_EVENT_CLOSE >_< Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
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