GtkOptionMenu             package:RGtk2             R Documentation

_G_t_k_O_p_t_i_o_n_M_e_n_u

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

     A widget used to choose from a list of valid choices

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gtkOptionMenuNew(show = TRUE)'
      'gtkOptionMenuGetMenu(object)'
      'gtkOptionMenuSetMenu(object, menu)'
      'gtkOptionMenuRemoveMenu(object)'
      'gtkOptionMenuSetHistory(object, index)'
      'gtkOptionMenuGetHistory(object)'
      'gtkOptionMenu(show = TRUE)'

_H_i_e_r_a_r_c_h_y:

     GObject
        +----GInitiallyUnowned
              +----GtkObject
                    +----GtkWidget
                          +----GtkContainer
                                +----GtkBin
                                      +----GtkButton
                                            +----GtkOptionMenu 

_I_n_t_e_r_f_a_c_e_s:

     GtkOptionMenu implements AtkImplementorIface and  'GtkBuildable'.

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

     A 'GtkOptionMenu' is a widget that allows the user to choose from
     a list of valid choices.  The 'GtkOptionMenu' displays the
     selected  choice.  When activated the 'GtkOptionMenu' displays a
     popup 'GtkMenu'  which allows the user to make a new choice.

     Using a 'GtkOptionMenu' is simple; build a 'GtkMenu', by calling
     'gtkMenuNew', then appending menu items to it with 
     'gtkMenuShellAppend'. Set that menu on the option menu  with
     'gtkOptionMenuSetMenu'. Set the selected menu item with
     'gtkOptionMenuSetHistory'; connect to the "changed" signal on the
     option menu; in the "changed" signal, check the new selected  menu
     item with 'gtkOptionMenuGetHistory'.

     As of GTK+ 2.4, 'GtkOptionMenu' has been deprecated in favor of
     'GtkComboBox'.

_S_t_r_u_c_t_u_r_e_s:


     '_G_t_k_O_p_t_i_o_n_M_e_n_u' *WARNING: 'GtkOptionMenu' has been deprecated
          since version 2.4 and should not be used in newly-written
          code. Use 'GtkComboBox' instead.* The 'GtkOptionMenu' struct
          contains private data only, and  should be accessed using the
          functions below.


_C_o_n_v_e_n_i_e_n_t _C_o_n_s_t_r_u_c_t_i_o_n:

     'gtkOptionMenu' is the equivalent of 'gtkOptionMenuNew'.

_S_i_g_n_a_l_s:


     '_c_h_a_n_g_e_d(_o_p_t_i_o_n_m_e_n_u, _u_s_e_r._d_a_t_a)' _undocumented _

          '_o_p_t_i_o_n_m_e_n_u' ['GtkOptionMenu'] the object which received the
               signal.

          '_u_s_e_r._d_a_t_a' [R object] user data set when the signal handler
               was connected.


_P_r_o_p_e_r_t_i_e_s:


     '_m_e_n_u' ['_G_t_k_M_e_n_u' : _R_e_a_d / _W_r_i_t_e] The menu of options.


_S_t_y_l_e _P_r_o_p_e_r_t_i_e_s:


     '_i_n_d_i_c_a_t_o_r-_s_i_z_e' ['_G_t_k_R_e_q_u_i_s_i_t_i_o_n' : _R_e_a_d] Size of dropdown
          indicator.


     '_i_n_d_i_c_a_t_o_r-_s_p_a_c_i_n_g' ['_G_t_k_B_o_r_d_e_r' : _R_e_a_d] Spacing around indicator.


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

     Derived by RGtkGen from GTK+ documentation

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

     <URL:
     http://developer.gnome.org/doc/API/2.0/gtk/GtkOptionMenu.html>

