a checkbok in a popupmenu from a menubar
Posted: Wed Dec 21, 2005 16:13
How do it?
following my intuation I wrote this code, but didnt worked:
I tried too use only the checkbok neither worked
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