itsalamanca
06-04-2009 17:59:42
hi,
I hava installed the new version of mygui and i have made a main menu. I select an option and a panel is shown.
In this panel i have another popup menu. I select an opcion a menu item, and the child items aren't shown.
I have this code:
and this .layout:
somebo can tell me how i have to do??
I hava installed the new version of mygui and i have made a main menu. I select an option and a panel is shown.
In this panel i have another popup menu. I select an opcion a menu item, and the child items aren't shown.
I have this code:
MyGUI::MenuBarPtr menuBar = MyGUI::Gui::getInstance().findWidget<MyGUI::MenuBar>("MenuMovimiento");
menuBar->setEnabled(true);
MyGUI::MenuItemPtr menuMovimientos = menuBar->getItemById("Movimientos");
mPopupMenuMovimientos = menuMovimientos->getItemChild();
MyGUI::MenuItemPtr menuItemManual = mPopupMenuMovimientos->getItemById("Manual");
MyGUI::MenuItemPtr menuItemAutomatico = mPopupMenuMovimientos->getItemById("Automatico");
menuBar->eventMenuCtrlAccept = newDelegate(this, &InterfazRobot::manejadorMenuMovimientos);
and this .layout:
<Widget type="MenuBar" skin="MenuBar" position="0 0 900 26" align="HStretch Top" layer="Overlapped" name="MenuMovimiento">
<Widget type="MenuItem" skin="MenuBarButton" position="0 0 100 22">
<Property key="Widget_Caption" value="Movimimientos"/>
<Property key="MenuItem_Type" value="Popup"/>
<Property key="MenuItem_Id" value="Movimientos"/>
<Widget type="PopupMenu" skin="PopupMenu" position="0 0 100 68" layer="Popup">
<Widget type="MenuItem" skin="PopupMenuLine" position="0 0 80 20">
<Property key="Widget_Caption" value="Manual"/>
<Property key="MenuItem_Id" value="Manual"/>
</Widget>
<Widget type="MenuItem" skin="PopupMenuLine" position="0 20 80 20">
<Property key="Widget_Caption" value="Automatico"/>
<Property key="MenuItem_Id" value="Automatico"/>
</Widget>
</Widget>
</Widget>
</Widget>
somebo can tell me how i have to do??