Class Menu : insertSeparator Method


void insertSeparator( [ String insertBeforeCommand ] )

Summary

Add a separator bar between items


Remarks

It can be either appended to the end of the menu, or inserted, depending on parameters given.


Parameters

ParameterDescription
String insertBeforeCommand [optional] The command name of the item you wish to insert before. If you don't provide this parameter then the menu is appended to the menu


Examples

Insert a new menu, and a separator, before the ShowBrowerVersion menu command:

var menuMain = app.getMainMenu();
var menuTools = menuMain.getMenu( "&Tools" );
if( menuTools )
{
var menuTest = menuTools.insertMenu( "Test", "ShowBrowerVersion" );
menuTools.insertSeparator( "ShowBrowerVersion" );
}


See Also

  • Menu : insertMenu


    Requirements

    build 1065