pippi Posted November 18, 2006 Share Posted November 18, 2006 Hello, i wrote a little app, and now i want to have a console/log, where some output is displayed. For that purpose i inserted an edit-control into my gui, and when ever i want to write stuff into my log, i use GuiCtrlSetData to append to the contents of the log. It works, but the problem i have is that once the contents of my log grows, it doesnt automatically scroll down to the last log entry, so the user has to manually scroll down to see it. Here is what i use: . . $logedit = GUICtrlCreateEdit("First log entry" & @CRLF & @CRLF, 10, 10, 250, 130, $ES_MULTILINE+$ES_READONLY+$ES_AUTOVSCROLL+$WS_VSCROLL) . . _PutLog("This is a log-entry") . . Func _PutLog($text) GUICtrlSetData ($logedit, @HOUR & ":" & @MIN & ":" & @SEC & " " & $text & @CRLF, 1) EndFunc Anyone got an idea how to do it? Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2006 Share Posted November 18, 2006 Might want to look at the _GUICtrlEditScroll in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
pippi Posted November 18, 2006 Author Share Posted November 18, 2006 thanks gafrost, that did it:> 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