DigiGuide Logo

Home » Development Area » DigiGuide Script » API Index » Class: App » getMainMenu Method

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

    (Last updated: July 04, 2008 15:18:18)