Sign in to follow this  
Followers 0
boaty

Need an autoscrolling Edit Control

4 posts in this topic

So I'm still working on my IM program, and actually it's all done. I just need to add some cosmetic niceties. Anyways, I constantly update the text of an Edit control like this:

GUICtrlSetData($EditRecv, GUICtrlRead($EditRecv) & @CRLF & $SendText)

The problem is, whenever I do so, the edit control defaults to all the way to the top. I'd like it to default at the bottom...

Anyway around this?

Share this post


Link to post
Share on other sites



Function _GUICtrlEdit_Scroll_GUICtrlEdit_Scroll($hWnd, $iDirection)

$hWnd = your edit control.

$iDirection =

$SB_LINEDOWN - Scrolls down one line

$SB_LINEUP - Scrolls up one line

$SB_PAGEDOWN - Scrolls down one page

$SB_PAGEUP - Scrolls up one page

$SB_SCROLLCARET - Scrolls the caret into view

Include Function _GUICtrlEdit_ScrollScrollBarConstants.au3

Best bet for handling situations like this in the future, check out the help file and look for all functions dealing with the control you're using. Most likely, someone has thought of exactly what you need and has provided a nice, clean way for you to get at it.

Share this post


Link to post
Share on other sites

Gah, thank you so much. I always check the AutoIt3, but never just the AutoIt help. I really don't know why it's seperated...finding information is just that much harder...but anyways..thanks so much.

Share this post


Link to post
Share on other sites

or... you could also use _GuiCtrlEdit_AppendText ()

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