This is what I am trying but it doesn't work.
Code: Select all
// PopupMenu
mPopupMenu = (CEGUI::PopupMenu *)mWinMgr->createWindow(
"DefaultWindow", "Portfolio/PopupMenu");
mIEInventoryDetail = (CEGUI::ItemEntry *)mWinMgr->createWindow(
(CEGUI::utf8*)"TaharezLook/StaticText", "Portfolio/PopupMenu/InventoryDetail");
mIEInventoryDetail->setText("Details");
mPopupMenu->addItem(mIEInventoryDetail);
When I run it in debug, I get the following:
[color=0000FF]Unhandled exception at 0x05eb45f0 in Client.exe: 0xC0000005: Access violation writing location 0xabababab.[/color]
at this line:
Code: Select all
mPopupMenu->addItem(mIEInventoryDetail);