how can I retrive the position or command ID of a menu item
| Thu, 2006-05-18 14:26 | |
|
how can I retrive the position or command ID of a menu item that has a cascade menu, when i have it selected
i don;t want the position of subitems contained in the cascade pane. i want to know the position(command ID) of the item containing a cascade pane when has the selection focus. thanks. |
|






Forum posts: 8
you have to provide the cascaced menu with a command id when defining it, otherwise it will be 0 by default.
RESOURCE MENU_PANE r_example_menu_subpane
{
items=
{
MENU_ITEM { command = CmdIDItem; txt="MenuItem";},
MENU_ITEM { command = CmdCascadeID; cascade = r_cascaded_item;
txt="CascadedItem";},
};
}
RESOURCE MENU_PANE r_cascaded_item
{
items=
{
MENU_ITEM { command = CmdID1; txt="aText";},
};
}