Listbox starting at the bottom.

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

Phobius
Just popping in
Just popping in
Posts: 7
Joined: Thu Apr 16, 2009 03:28

Listbox starting at the bottom.

Postby Phobius » Sun Apr 26, 2009 10:57

Is it possible for the listbox to start listing items from the bottom up? As in, if there is too much space for the listbox (it is taking more space than it needs to to display its items and therefore has extra empty space), is there a way for the items in the listbox to appear starting from the bottom of the listbox and ascending up the screen. Essentially I want the reverse behaviour of what is currently available.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Listbox starting at the bottom.

Postby CrazyEddie » Mon Apr 27, 2009 09:07

Hi,

You may be able to get this by enabling sorting and overriding the virtual operators to sort on a custom item index field that you set. Obviously there are potential issues when doing this due to you having to ensure that all items are of the correct type, since you will be downcasting to your new type.

Hacky? Yes! Pretty? No! But it should work ;)

CE.

Phobius
Just popping in
Just popping in
Posts: 7
Joined: Thu Apr 16, 2009 03:28

Re: Listbox starting at the bottom.

Postby Phobius » Mon Apr 27, 2009 22:24

Lovely. Thank you.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests