Mouse is visible:
Mouse is no longer visible:
Here is my code:
Code: Select all
CEGUI::Combobox* MenuBasedSystem::createComboBox( Ogre::String name, Ogre::String type, Ogre::StringVector items, CEGUI::UVector2 pos, CEGUI::UVector2 size )
{
CEGUI::Combobox* newComboBox = static_cast<CEGUI::Combobox*>(mWindowManager->createWindow(type.c_str(),name.c_str()));
newComboBox->setSize(size);
newComboBox->setPosition(pos);
newComboBox->setMouseCursor("WindowsLook","MouseArrow");
newComboBox->setReadOnly(true);
// iterate through list and add items
// if empty list, don't add anything
if( items == NULL ) return newComboBox;
std::vector<Ogre::String>::iterator it;
int index = 0;
for( it = items->begin(); it != items->end(); ++it, ++index )
{
CEGUI::ListboxTextItem* item = new CEGUI::ListboxTextItem((CEGUI::utf8*)it->c_str(), index);
newComboBox->addItem(item);
}
return newComboBox;
}
I did a search on the forums, and could not find anything. What am I missing from my code?
I am using OGRE 1.4 RC2 and CEGUI 0.5.0.
Thanks in advance,
KungFooMasta