Info Posted July 30, 2009 Share Posted July 30, 2009 (edited) Example:#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 116, 163, 218, 150) $Edit1 = GUICtrlCreateEdit("", 0, 32, 113, 129) GUICtrlSetData(-1, "") $Button1 = GUICtrlCreateButton("Button1", 0, 0, 113, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($Edit1,guictrlread($Edit1)&"Line"&@CRLF) EndSwitch WEndAfter I click Button1 many times, that thing will bet created: (marked in red)Now I get it down to read the new line:Then I press Button1 again and it gets back up. >_< Is there any way to make it stay down? Edited July 30, 2009 by Info Link to comment Share on other sites More sharing options...
czardas Posted July 30, 2009 Share Posted July 30, 2009 (edited) Is there any way to make it stay down?The thing in red is the scroll bar.I suggest you search the help file, or the forum, for the words 'Scroll' and 'Edit'. You can scroll to any line in the edit control. But I'm not quite sure of the exact function name. I'm using an older version of AutoIt, and I don't want to tell you the wrong thing.UPDATE: I think the function name you want is: _GUICtrlEdit_LineScrollPerhaps this thread will help you.It might also help if you show us the rest of your code! Edited July 30, 2009 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Info Posted July 30, 2009 Author Share Posted July 30, 2009 #include <GuiEdit.au3> #include <ScrollBarConstants.au3> _GUICtrlEdit_Scroll(GUICtrlGetHandle($Edit1),$SB_SCROLLCARET) Found it >_< Thanks! Link to comment Share on other sites More sharing options...
czardas Posted July 30, 2009 Share Posted July 30, 2009 Glad to be of help. operator64 ArrayWorkshop 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