how can I retrive the position or command ID of a menu item

Login to reply to this topic.
Thu, 2006-05-18 14:26
Joined: 2003-11-28
Forum posts: 35
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.

Thu, 2006-06-29 10:35
Joined: 2005-06-08
Forum posts: 8
Re: how can I retrive the position or command ID of a menu item
Hi,

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";},
        };
    }
  • Login to reply to this topic.