I found that if I attach a keyDown callback to a ItemListbox and in the callback increment the selected index of the list. This will highlight the next item and then the next. However, if the selection goes out of the box, the list doesn't scroll, and in effect you don't see what you're selecting anymore. It seems that the only way to scroll the list is by a mouse.
Is there a way to implement key input so that it will scroll the list?
Key input support for listbox
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 13
- Joined: Wed Oct 21, 2009 20:21
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Key input support for listbox
Hi,
Look at the CEGUI::ScrolledItemListBase::ensureItemIsVisibleVert and CEGUI::ScrolledItemListBase::ensureItemIsVisibleHorz functions.
HTH
CE.
Look at the CEGUI::ScrolledItemListBase::ensureItemIsVisibleVert and CEGUI::ScrolledItemListBase::ensureItemIsVisibleHorz functions.
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 10 guests