IListBox selection behaviour

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
binford
Posts: 28
Joined: Tue Nov 14, 2006 10:32 am
Location: Munich

IListBox selection behaviour

Post by binford »

Hi,

Im trying to use the Irrlicht GUI system, but got stuck in the very beginning. I'd like to have a list box with standard list box behaviour. I expected that one could select list box items by clicking on them. But when I try to select my items, nothing happens (Linux). Is the "select-by-clicking" feature not built in?

cheers
Janosch
stef_
Posts: 53
Joined: Tue Apr 18, 2006 9:39 pm
Contact:

Post by stef_ »

When you click on a listbox item gui event EGET_LISTBOX_CHANGED is fired.

Bye
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The list box will select items that you click on and it will fire an event as mentioned above. You shouldn't need to do anything.

The selection will not work if there is another gui element [possibly invisible] that overlays the list box, or if the user event receiver eats mouse events.

Travis
binford
Posts: 28
Joined: Tue Nov 14, 2006 10:32 am
Location: Munich

Post by binford »

ok it didnt work cause I forgot to return false in my event listener, so the mouse events were captured preventing the list box to work. Thx guys.

Janosch
Post Reply