MenuXXX() function also manipulate
Tk menus the same way, but are capable of manipulating other menus as well.
One should, thus, preferably use MenuXXX()!tkMenuAdd(menu, tearoff = FALSE)
tkMenuAddItem(menu, item, action, image = "", accel = "", options = "")
tkMenuDel(menu)
tkMenuDelItem(menu, item)
tkMenuItems(menu)
tkMenuChangeItem(menu, item, action = "", options = "")
tkMenuStateItem(menu, item, active = TRUE)
tkMenuInvoke(menu, item)
tkMenuItemCall(expr)tkMenuAdd() and tkMenuAddItem() return the handle of the newly
created menu/menu item invisibly.
tkMenuDel() and tkMenuDelItem() return invisibly TRUE if
the resource is found and deleted, FALSE otherwise.
tkMenuItems() returns the list of all items in a given menu.
tkMenuInvoke() returns invisibly TRUE if the menu item was
invoked, FALSE otherwise.
tkMenuStateItem() returns the new state of the menu.
tkMenuItemCall() is usually not called directly by the end-user, but
rather through a menu. It is a user-visible function so that it is possible
to substitute it with a custom function to manage menu item calls
differently in a custom GUI, for instance.MenuXXX()
functions that will call them if Tk menus or menu items are provided.MenuAdd