MultiLineEditbox autoscroll

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Just popping in
Just popping in
Posts: 1
Joined: Thu Jun 22, 2006 02:09

MultiLineEditbox autoscroll

Postby Yezo » Thu Jun 22, 2006 02:23

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()?

Just popping in
Just popping in
Posts: 7
Joined: Thu Apr 26, 2007 21:46

Postby balizeiro » Tue Sep 18, 2007 13:48

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 :(

CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Tue Sep 18, 2007 13:57

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() );

Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests