Jump to content

Problem with my console/log i wrote for my app


pippi
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...