Listbox starting at the bottom.
Moderators: CEGUI MVP, CEGUI Team
Listbox starting at the bottom.
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.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Listbox starting at the bottom.
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Listbox starting at the bottom.
Lovely. Thank you.
Who is online
Users browsing this forum: No registered users and 18 guests