Removes a menu heading/item from a window's menu, or removes the entire menu from a window.
Synopsis
error = GuiRemoveMenu(Specification, Option)
Args
The Specification arg depends upon Option as described below.
Option is one of the following.
Options Meaning MENU Remove the entire menu for the window. Specification need not be supplied. VAR Remove a heading or item that is associated with a particular REXX variable. Specification is that variable's name. If supplying the name directly, quote it. ID Remove a heading or item that is associated with a particular ID number. Specification is that ID number. VAR Remove a heading or item that at a particular position. Specification is that position. See GuiAddMenu for more details upon a position.
If Option is omitted, then it defaults to 'POS'.
Returns
If successful, an empty string is returned. Otherwise, an error message.
Notes
It is not considered an error if the item you're removing doesn't actually exist. In this case, GuiRemoveMenu indicates success.
When removing a heading, all of the items/sub-items beneath are also automatically removed.