Jump to content
Sign in to follow this  

Problem with my console/log i wrote for my app

Recommended Posts


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)

Anyone got an idea how to do it?

Share this post

Link to post
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
Sign in to follow this  

  • Create New...