following my intuation I wrote this code, but didnt worked:
Code: Select all
CEGUI::MenuItem* itemv4=(CEGUI::MenuItem*)CEGUI::WindowManager::getSingleton().createWindow("WindowsLook/PopupMenuItem", (CEGUI::utf8*)"v4");
itemv4->setText("Left");
popupmview->addChildWindow(itemv4);
CEGUI::Checkbox* ckb1=(CEGUI::Checkbox*)CEGUI::WindowManager::getSingleton().createWindow("WindowsLook/Checkbox", (CEGUI::utf8*)"ckb4");
itemv4->addChildWindow(ckb1);
I tried too use only the checkbok neither worked