Please enable JavaScript to view this site.

A-Shell Reference

menuid (any type) specifies the top level menu number or its name, according to the following table:

Value

Meaning

< 0

Negative numbers are used to identify context menus. The number itself is arbitrary and only serves to identify the menu (for the purpose of adding items to it, deleting it, or displaying it under program control). See Sample.mdf.

0

Top level menu as a whole. Use this when adding or deleting an item that appears on the horizontal menu bar (which starts with items "File", "Edit", "Settings", "Help".

1

The "File" menu. Use this to add or delete items to the drop down menu that appears when you click on "File".

2

The "Edit" menu. Use this to add or delete items to the drop down menu that appears when you click on "Edit".

3

The "Settings" menu. Use this to add or delete items to the drop down menu that appears when you click on "Settings".

4

The "Help" menu. Use this to add or delete items to the drop down menu that appears when you click on "Help".

5 or <name>

This would be the number of the first item added to the top level menu bar. You could also refer to it by the same text that you specified as mnutxt when you added it. Use this to add or delete items to the drop down menu that appears when you click on this menu.

6 – 14 or <name>

Same idea as for five, but for the sixth through fourteenth items on the top menu bar.

1000+

Custom menu item identifier established by setting Itemid when the parent menu created. (This method of associating menu items with the parent menu is more flexible than the position-based method, and allows for multiple levels of submenu nesting.)