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