Home › Forums › General XMetaL Discussion › Modifying the right click menu in a document. › Reply To: Modifying the right click menu in a document.
Derek Read January 25, 2012 at 12:47 am
Reply to: Modifying the right click menu in a document.January 25, 2012 at 12:47 am
The context menu can be modified using the same APIs as the regular menus (same names but on the ActiveContextMenu object, and you should do it inside the On_Context_Menu event).
If you add a menu item to the context menu you can then add a menu item to that item (treat what you just added as an object), and as soon as you do so the first one becomes a sub-menu, with the second item(s) inside it.
The documentation doesn't have any good examples for doing this, but this demo script contains an example: