the menu widget is one of the control that contain item like list box and combobox
and to create item for menu we use CEGUI::MenuItem .
OK
if i create a menu item like this
Code: Select all
MenuItem *_item = static_cast <MenuItem*> (CEGUI::WindowManager::getSingletonPtr()->createWindow ("TaharezLook/MenuItem" , Name)
and succeeded to create the item but if i change my code to something like this
Code: Select all
CEGUI::MenuItem *_item = new MenuItem ( "TaharezLook/MenuItem" , Name);
i fail to create the menu item
my question is : what's the diferrent between first code and the second
and why i fail to create the item in the second way , and thank you .
CEGUI.log
http://pastebin.com/raw.php?i=JvYTJHm7