The exaxt same code, only replaced by a Listbox works perfectly.
Code: Select all
//This works, "MyListbox" is existing and of type CEGUI::Listbox (read from .layout file)
static_cast<CEGUI::Listbox*>(wmgr->getWindow("MyListbox"))->addItem(new CEGUI::ListboxTextItem("Test1"));
//This doesn't work, "MyCombobox" is existing and of type CEGUI::Combobox (read from .layout file)
static_cast<CEGUI::Combobox*>(wmgr->getWindow("MyCombobox"))->addItem(new CEGUI::ListboxTextItem("Test2"));

