Sign in to follow this  
Followers 0
knight666

Autoscrolling in an edit ***SOLVED***

5 posts in this topic

#1 ·  Posted (edited)

I've looked all over the board, and I can't seem to find a proper way to autoscroll to the bottom of an edit box.

Basically my program adds a lot of lines to an edit box, and you can only scroll down when it's done doing that.

So my question: is there a way to autoscroll to the bottom of it?

I could ofcourse just keep sending {END}'s, but it's not a very elegant solution plus the window will need focus for it to work.

Thanks in advance!

Edited by knight666

Share this post


Link to post
Share on other sites



_GUICtrlEditLineScroll

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

If I use the following line to add lines to my editbox it seems to autoscroll without any problems.

GUICtrlSetData($ctrl, "blah blah" & @CRLF, True)

Edit : typo

Edited by Helge

Share this post


Link to post
Share on other sites

Hey, thanks man, that did the trick. :rolleyes:

I was doing something really dumb by the way:

Func AddMsg($msg)
 GUICtrlSetData($txtLoading, GUICtrlRead($ØY[ÊH   [ÈÕT  [È ][ÝÎ][ÝÈ    [ÈRS   [È ][ÝÎ][ÝÈ    ײ4T2fײgV÷C²ÒgV÷C²fײb33c¶×6rfײ5$Äb¤VæDgVæ

So you've not only fixed my problem, you've also sped things up considerably. (b ")b

_GUICtrlEditLineScroll

Thanks for letting me know its proper usage, where I could find the function and if it actually does what I want it to.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Thanks for letting me know its proper usage, where I could find the function and if it actually does what I want it to.

You can find it in AutoIt v3 help file, under User Defined Functions and GuiEdit Management. Edited by poisonkiller

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  
Followers 0