nec
25-11-2009 01:01:30
Hello,
i'am trying to create procedural popup menu with submenus like this
the main popup display properly but when i move the cursor on the menu items i expect the submenu to appear but nothing appends do i miss something? i tryed to look at the layout editor code but i saw nothing more than what i used.
A clue make me think that the submenu is created but, i dont' known why, not drawn because if i click on the left of the main popup the popup instantly disappear and if i click on the area where the submenu should be i need 2 clicks to have the popup disappear.
Why my submenus doesn't appear on the screen?
Thx
i'am trying to create procedural popup menu with submenus like this
ms_pPopup = MyGUI::Gui::getInstance().createWidget<MyGUI::PopupMenu>("PopupMenu", 0,0,150,200,Align::Default, "Popup", "main_popup");
MyGUI::MenuCtrl * a_pChildMenu;
ms_pPopup->addItem("Menu1",MenuItemType::Popup);
a_pChildMenu = ms_pPopup->createItemChildAt(0);
a_pChildMenu->addItem("Submenu11",MenuItemType::Normal);
a_pChildMenu->addItem("Submenu12",MenuItemType::Normal);
a_pChildMenu->addItem("Submenu13",MenuItemType::Normal);
ms_pPopup->addItem("Menu1",MenuItemType::Popup);
a_pChildMenu = ms_pPopup->createItemChildAt(1);
a_pChildMenu->addItem("Submenu21",MenuItemType::Normal);
a_pChildMenu->addItem("Submenu22",MenuItemType::Normal);
a_pChildMenu->addItem("Submenu23",MenuItemType::Normal);
...
the main popup display properly but when i move the cursor on the menu items i expect the submenu to appear but nothing appends do i miss something? i tryed to look at the layout editor code but i saw nothing more than what i used.
A clue make me think that the submenu is created but, i dont' known why, not drawn because if i click on the left of the main popup the popup instantly disappear and if i click on the area where the submenu should be i need 2 clicks to have the popup disappear.
Why my submenus doesn't appear on the screen?
Thx