PopupMenu
Posted: Mon Sep 26, 2005 21:46
Could someone with PopupMenu knowledge please give a quick overview what how to implement it?
This is what I am trying but it doesn't work.
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:
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);