Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > PopupMenu Object > Methods

Macro: Add Method (PopupMenu Object)

Scroll Prev Top Next More
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, id, 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.


Places a check mark next to the menu item.


Disables the menu item and grays it so that it cannot be selected.


Draws a horizontal dividing line. This flag cannot be combined with others.


Supported on EmEditor Professional Version 5.00 or later.

Copyright © 2003-2023 by Emurasoft, Inc.