ItemListBox vs 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

khayyam
Just popping in
Just popping in
Posts: 13
Joined: Thu Jun 29, 2006 08:22
Location: France

ItemListBox vs ListBox

Postby khayyam » Wed Mar 21, 2007 08:31

Hi all,

I don't see the differences between the ItemListBox and the ListBox
I need a widget able to list strings in order to select them by clicking, which one will fit the best ?

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Wed Mar 21, 2007 10:50

Listbox will do just fine. ItemListbox is basically for custom items.
Image
Image

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

Postby kili » Wed Jun 20, 2007 03:14

Could you give me some examples about
"custom items"?

And another question,
what's different between ListboxItem
with ItemListbox and Listbox?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Wed Jun 20, 2007 12:42

For simply displaying text you can use Listbox and ListboxTextItem. Have a look at WidgetGalore for an example.

ItemListbox is more complex but more powerful. Have a look at Create_a_CheckListboxItem for a tutorial on how to create custom listbox items. Another (almost identical) example can be found within Property Finder; one of the minor differences is that I created a register() function.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests