tkMenu               package:svWidgets               R Documentation

_C_o_n_v_e_n_i_e_n_t_l_y _m_a_n_i_p_u_l_a_t_e _T_k _m_e_n_u_s

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

     These functions provide an easier way to create and manipulate Tk
     menus under R. Note that the corresponding MenuXXX() function also
     manipulate Tk menus the same way, but are capable of manipulating
     other menus as well. One should, thus, preferably use MenuXXX()
     that tkMenuXXX()!

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

       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)  

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

    menu: Name of a menu 

 tearoff: Should the menu be detachable? 

    item: Name of a menu item 

  action: Action the menu triggers (R code) 

   image: Name of an image to display at left of the menu item 

   accel: Accelerator (keystroke) to use to trigger this menu item 

 options: Additional options, for instance 'state = "disable"' to
          disable the menu at creation. 

  active: Do we enable or disable the menu item? 

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

     'tkMenuAdd()' return the handle to the newly created menu.

_A_u_t_h_o_r(_s):

     Philippe Grosjean

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

     'MenuNames'

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

       ## Look at the extensive example in ?MenuNames

