I create a listbox and I add some items:
Code: Select all
Listbox*listbox = static_cast<CEGUI::Listbox*>(CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Listbox", "levels listbox"));
CEGUI::ListboxTextItem*item = new CEGUI::ListboxTextItem("text");
listbox->addItem(item);
I see in many post that before add the items at the listbox I can set the selection color and the selection brush image for select the items when i click on it, the problem is that in every post the setSelectionBrushImage() use two CEGUI::String like parameters, but in my version of CEGUI (0.8.7) the methods use only one parameter and so I don't know what I have to use here:
Code: Select all
item->setSelectionColours(CEGUI::Colour(255, 0, 0, 255));
item->setSelectionBrushImage(?);