Key input support for listbox

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

hermit purple
Just popping in
Just popping in
Posts: 13
Joined: Wed Oct 21, 2009 20:21

Key input support for listbox

Postby hermit purple » Wed Feb 24, 2010 02:03

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?

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

Re: Key input support for listbox

Postby CrazyEddie » Wed Feb 24, 2010 11:29



Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests