Set the menu ID that will be generated when this attribute is editted or double-clicked on. The existing menu entry 'Edit Attribute...' will be modified in the context menu such that it generates the ID given. When this menu item is chosen by the user, or the attribute is double-clicked, all LUSAS extension modules will be informed that the given menu ID has been triggered. The appropriate module can then handle all three events (creation, edit, double click) in one handler - onMenuClick. Note that the user can no longer view or modify the underlying modeller definition via the "Edit Attribute..." menu entry. To enable this, call setDefinitionMenuID() in preference to this function.
menuID | integer | |
clientData | optional variant | This data will be passed back to you, unmodified, in your overrides of onMenuClick() and onMenuUpdate(). Limited to simple types such as strings and integers |
isRelativeID | optional boolean | If true, the given menu ID is assumed to be relative to the constant ID_MODULE_MENU_MIN. If false (the default), it is an absolute value |
Return value | none |
See also insertItem appendItem setEditDialog setDoubleClickDialog insertContextMenuItem removeExternalDefinition
Back to Attribute
Back to Overview