Docs:
Code: Select all
Inserts entry$ at the position which is defined with listnode$ and prevnode$. Entry$ contains the name of the entry as string. id$ must be a unique string identifier that you want to use to refer to the newly inserted tree node.
In listnode$ you specify the node whose list is used to insert the entry. This can be the string identifier of a node or one of the following special values:
Root
The root list.
Active
The list of the active node.
Code: Select all
mui.DoMethod(menu,"insert","=BAR=", pos,"active","active","active")