Event when clicking on a listbox item

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

User avatar
Crashy
Just popping in
Just popping in
Posts: 4
Joined: Tue Jul 05, 2005 10:41
Contact:

Event when clicking on a listbox item

Postby Crashy » Tue Mar 07, 2006 13:35

Hello. I made a gui with a combobox, and event handlers when clicking on the items.

But now I would like to transform this to use a Listbox at the place of a combobox. How to do this? Listbox has no ComboBox::EventListSelectionAccepted an I need something like that. What is the equivalent for listbox?

Thanks.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Postby martignasse » Tue Mar 07, 2006 14:56

hi crashy,

the ListboxItem::EventSelectionChanged don't do the trick ?

there is no notion of 'accepted selection' for the listbox, you have the 'selection changed' instead.

hope it help.

User avatar
Crashy
Just popping in
Just popping in
Posts: 4
Joined: Tue Jul 05, 2005 10:41
Contact:

Postby Crashy » Tue Mar 07, 2006 17:44

Thanks, for answer , that works fine!:)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 20 guests