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

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

jchmack
Just popping in
Just popping in
Posts: 12
Joined: Tue Mar 27, 2007 15:13

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

Postby jchmack » Tue Jan 29, 2008 10:25

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?

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

Postby Rackle » Tue Jan 29, 2008 11:29

Have a look through GameChatBox. What you want is the ensureItemIsVisible() function.

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

Postby Rackle » Tue Jan 29, 2008 16:17

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests