Class App : getMainMenu Method


Menu getMainMenu()

Summary

Get the main menu object


Remarks

Get the main menu so it can be manipulated


Returns

The main menu object


Examples

Example below gets the main menu, checks if there is a Tools menu and if not adds one.

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


See Also

  • Menu


    Requirements

    build 1065