Adds a new item or sub-menu to the menu.
Adds a new selectable item to the menu if id is a non-negative value. If help-string is not null, it may be used to display help information to the user. If checkable is not #f, then the menu item has a check-state that is changed with check. (When the user selects the item, the check state is automatically toggled.)
The name string can contain special embedded codes to setup a keyboard binding for the menu item. Under MacOS, these key bindings are automatically performed; for other platforms, the binding is simply displayed in the menu item.
Menu item key bindings are specified with a tab character. Under Windows and X Windows, the remainder of the string is displayed as the binding. Under MacOS, the remainder is ignored, unless it has of the form ``Cmd+X''; in this case, the menu item is bound to Cmd-X.
Under Windows, the Alt key automatically switches to menu-selection mode. Include an ampersand (``&'') in the item name to set navigation keys for this mode. Under X Windows anfd MacOS, an ampersand in a menu item name is removed and ignored.
Adds a new sub-menu to the menu if id is a non-negative value.