Howto get ListBoxItem from an ID?
Posted: Sun Dec 17, 2006 16:58
Hi all
This is the way I add an item to a list box.
Now I want to get this item from the ID.
Can I do so? If not why CEGUI uses ID?
Thank you
This is the way I add an item to a list box.
Code: Select all
CEGUI::ListboxTextItem *item = new CEGUI::ListboxTextItem(userName, id, p);
item->setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush");
m_playerListBox->addItem(item);
m_playerListBox->ensureItemIsVisible(item);
Now I want to get this item from the ID.
Can I do so? If not why CEGUI uses ID?
Thank you