I create the Combobox and ListboxTextItems as shown below:
Code: Select all
CEGUI::Combobox *b = (CEGUI::Combobox*)wm->createWindow("WindowsLook/Combobox", "Listbox");
b->setPosition( CEGUI::Point(0.01f, 0.7f));
b->setSize( CEGUI::Size(0.4f, 0.2f ));
b->setReadOnly(true);
CEGUI::ListboxTextItem *item = new CEGUI::ListboxTextItem( (CEGUI::utf8*)"hello1");
b->addItem(item);
CEGUI::ListboxTextItem *item2 = new CEGUI::ListboxTextItem( (CEGUI::utf8*)"hello2");
b->addItem(item2);
When run, the Combobox get's displayed, but no items are rendered. If I "click" in the pulldown list, my selected item now magically gets rendered in the collapsed Combobox.
It seems the items never get rendered in the pulldown list. Any ideas?
0.3.0 release/OpenGLRenderer/WindowsLook Widgets
Thanks!