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.
itemText | string | text of new item |
command | string | command to execute when menu item selected |
helpString | optional string | help string to be displayed in status bar when cursor hovers over menu item |
sessionFile | optional boolean | Default true. Should commands appear in session file when item selected? |
Return value | integer | The automatically generated (and temporary) ID of the newly created menu item |
Back to Menu
Back to Overview