Menu.appendItem


appendItem(itemText, command, [helpString], [sessionFile])

Appends a new menu item at the end of this menu Note that the returned menu ID is considered temporary and is only valid for a given interactive session, and thus should not be stored in model files or similar.

itemTextstringtext of new item
commandstringcommand to execute when menu item selected
helpStringoptional string help string to be displayed in status bar when cursor hovers over menu item
sessionFileoptional boolean Default true. Should commands appear in session file when item selected?
Return valueintegerThe automatically generated (and temporary) ID of the newly created menu item

Back to Menu

Back to Overview