createSimpleMenu         package:RGtkViewers         R Documentation

_C_r_e_a_t_e _a _m_e_n_u

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

     A convenience function for creating a menu by specifying a
     character vector giving the labels of the menu items and a single
     callback function that is invoked when an item is selected.

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

     createSimpleMenu(labels, callback = NULL)

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

  labels: ~~Describe 'labels' here~~ 

callback: the callback function that is registered for the 'activate'
          signal for each 'GtkMenuItem' created. The function should
          expect the 'GtkMenuItem' as the first argument and the menu
          item's label as the second argument. 

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

     A list 

    menu: the 'GtkMenu' object

   items: a list of the 'GtkMenuItem' objects

_N_o_t_e:

     This will probably be moved to a new package named RGtkUtils in
     the future.

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

     Duncan Temple Lang <duncan@research.bell-labs.com>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/RGtk>, <URL: http://www.gtk.org>

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

     'gtkMenu' 'gtkMenuItem' 'gtAddCallback'

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

