Description
Adds new submenu entry into item on given path.
Syntax
Syntax 1
menuAdd [idc, path, text]
Parameters:
idc: Numberpath: Tree View Pathtext: String
Returns: Number
Syntax 2
control menuAdd [path, text]
Parameters:
control: Controlpath: Tree View Path - path where the items should be addedtext: String - displayed name for the entry
Returns: Number - index of the item
Examples
Example 1
findDisplay 313 displayCtrl 120 menuAdd [[], "Custom Tools"]; // Add new entry at the top level to the menu strip in Eden Editor