winMenu {svWidgets} | R Documentation |
A couple of winMenuXXX() functions are defined in the package 'utils' to manipulate custom menus of Rgui (under windows only). Here are some additional ones. note that you should preferrably use the corresponding MenuXXX() function defined in this package (they work with windows menus as well as other menus, like Tk.
winMenuChangeItem(menu, item, action, options = "") winMenuStateItem(menu, item, active = TRUE)
menu |
Name of a menu |
item |
Name of a menu item |
action |
Action the menu triggers (R code) |
options |
Additional options, for instance 'state = "disable"' to disable the menu at creation. |
active |
Do we enable or disable the menu item? |
These functions complement the winMenuXXX() functions in package 'utils'. Do prefer to use the corresponding MenuXXX() functions that work with all types of menus (currently, only Windows and Tk, but more will be added in the future).
Philippe Grosjean
## See ?MenuNames for extensive examples