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)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.MenuXXX()
functions that will call them if Tk menus or menu items are provided.MenuAdd