winMenus                package:base                R Documentation

_U_s_e_r _M_e_n_u_s _u_n_d_e_r _W_i_n_d_o_w_s

_D_e_s_c_r_i_p_t_i_o_n:

     Enables users to add, delete and program menus under Windows.

_U_s_a_g_e:

     winMenuAdd(menuname)
     winMenuAddItem(menuname, itemname, action)
     winMenuDel(menuname)
     winMenuDelItem(menuname)

_A_r_g_u_m_e_n_t_s:

menuname: a character string naming a menu.

itemname: a character string naming a menu item on an existing menu.

  action: a character string describing the action when that menu is
          selected, or `"enable"' or `"disable"'.

_D_e_t_a_i_l_s:

     User menus are added to the right of existing menus, and items are
     added at the bottom of the menu.

     By default the action character string is treated as R input,
     being echoed on the command line and parsed and executed as usual.

     Specifying an existing item in `winMenuAddItem' enables the action
     to be changed.

     Submenus can be specified by separating the elements in `menuname'
     by slashes: as a consequence menu names may not contain slashes.

     If the `action' is specified as `"none"' no action is taken: this
     can be useful to reserve items for future expansion.

_V_a_l_u_e:

     `NULL', invisibly. If an error occurs, an informative error
     message will be given.

_S_e_e _A_l_s_o:

     `winDialog'

_E_x_a_m_p_l_e_s:

     winMenuAdd("Testit")
     winMenuAddItem("Testit", "one", "aaaa")
     winMenuAddItem("Testit", "two", "bbbb")
     winMenuAdd("Testit/extras")
     winMenuAddItem("Testit", "-", "")
     winMenuAddItem("Testit", "two", "disable")
     winMenuAddItem("Testit", "three", "cccc")
     winMenuAddItem("Testit/extras", "one more", "ddd")
     winMenuAddItem("Testit/extras", "and another", "eee")

