Page 1 of 1

Making the CEGUI::Listbox scoll down as text is added.

Posted: Tue Jan 29, 2008 10:25
by jchmack
I am trying to use CEGUI for a chat box. Right now i am using a CEGUI::Listbox and I add a new CEGUI::ListboxTextItem for each new message recieved. This all works great until i start getting a few lines of text and then i have to scroll down to see my messages. Is there a way i can make the CEGUI::Listbox scroll automatically?

Posted: Tue Jan 29, 2008 11:29
by Rackle
Have a look through GameChatBox. What you want is the ensureItemIsVisible() function.

Posted: Tue Jan 29, 2008 16:17
by Rackle
I've modified the contents of GameChatBox such that the EditBox is not squished when reducing the parent's size as well as transforming the code into a runnable application.