Class: Menu


Summary

A menu object


Remarks

Usually this is used for the main menu.


Methods

MethodDescription
 doesItemExist Determine whether a menu, or menu item, exists.
 getMenu Get a submenu from a Menu
 insertItem Insert, or append, an item into the menu.
 insertMenu Insert or append a new menu
 insertSeparator Add a separator bar between items
 setDefault Sets the default (bold) menu item if needed


Examples

var menuMain = app.getMainMenu();
var menuTools = menuMain.getMenu( "&Tools" );
if( !menuTools )
{
menuTools = menuMain.insertMenu( "&Tools" );
}


See Also

  • App : getMainMenu
  • onTrayIconRightClick


    Requirements

    build 1065