Page 1 of 1
MultiLineEditbox autoscroll
Posted: Thu Jun 22, 2006 02:23
by Yezo
I would have thought this was a common question but i cant find it anywere.
How would i make a MultiLineEditbox autoscroll to the bottom when i add text to it using setText()?
Posted: Tue Sep 18, 2007 13:48
by balizeiro
Have you found any answer to your question? Because I'm also trying to do that but haven't found any way to do it

Posted: Tue Sep 18, 2007 13:57
by Rackle
A MultiLineEditbox is composed of a text area and a scrollbar. Try finding that scrollbar and talking to it: "hey you scrollbar, move down to the bottom". The next bit would be to set the caret to the last position, maybe something like setCaretAtCharacterPosition( multilineEditbox->getText().size() );