AnalysisBaseClass.insertContextMenuItem


insertContextMenuItem(beforeItem, itemText, command, [helpString], [sessionFile])

Inserts a new menu item before the specified item in the context (right click) menu for this analysis. The specified item can be represented as either text or ID and could refer to either a sub menu or a menu item

beforeItemstring or long menu item before which new item is to be placed
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 valuenone 

See also setEdittingMenuID setDefinitionMenuID setEditDialog setDoubleClickDialog removeExternalDefinition isEdittingAttribute getEdittingAttribute

Back to AnalysisBaseClass

Back to Overview