EmEditor Home - EmEditor Help - EmEditor Macro Reference - PopupMenu Object

Add Method

Adds a new item to the end of the menu.


popupmenu.Add( strText, id, flags );


popupmenu.Add strText, is, flags



Specifies text to display. If eeMenuSeparator is set in the flags parameter, an empty string must be specified.


Specifies the identifier of the new menu item. The Track Method uses this identifier as the return value. If eeMenuSeparator is set in the flags parameter, 0 must be specified.


Specifies status of the item. The following flags can be specified.

eeMenuChecked Places a check mark next to the menu item.
eeMenuGrayed Disables the menu item and grays it so that it cannot be selected.
eeMenuSeparator Draws a horizontal dividing line. This flag cannot be combined with others.


Supported on EmEditor Professional Version 5.00 or later.

Copyright 2003-2015 by Emurasoft, Inc.