winMenu: Additional winMenuXXX() functions
Description
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 preferably use the corresponding
MenuXXX() function defined in this package (they work with windows menus
as well as other menus, like Tk.Usage
winMenuChangeItem(menu, item, action, options = "")
winMenuStateItem(menu, item, active = TRUE)
winMenuInvoke(menu, item)
Arguments
action
Action the menu triggers (R code)
options
Additional options. Only supports "enable" or "disable",
currenty.
active
Do we enable or disable the menu item?
Details
These functions are used only under Windows, and when RgGui.exe is executed.
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 RGui and Tk, but more could be added
in the future).