gtkDialogSetAlternativeButtonOrder   package:RGtk2   R Documentation

_g_t_k_D_i_a_l_o_g_S_e_t_A_l_t_e_r_n_a_t_i_v_e_B_u_t_t_o_n_O_r_d_e_r

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

     Sets an alternative button order. If the 
     '"gtk-alternative-button-order"' setting is set to 'TRUE',  the
     dialog buttons are reordered according to the order of the 
     response ids passed to this function.

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

     gtkDialogSetAlternativeButtonOrder(object, ...)

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

'object': ['GtkDialog']  a 'GtkDialog'

   '...': a list of more response ids of 'dialog''s buttons, terminated
          by -1

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

     By default, GTK+ dialogs use the button order advocated by the
     Gnome  Human  Interface Guidelines (<URL:
     http://developer.gnome.org/projects/gup/hig/2.0/>) with the
     affirmative button at the far  right, and the cancel button left
     of it. But the builtin GTK+ dialogs and 'GtkMessageDialog's do
     provide an alternative button order, which is more suitable on
     some platforms, e.g. Windows.

     Use this function after adding all the buttons to your dialog, as
     the  following example shows:


     cancel_button <- dialog$addButton("gtk-cancel", "cancel")

     ok_button <- dialog$addButton("gtk-ok", "ok")
     ok_button$grabDefault()

     help_button <- dialog$addButton("gtk-help", "help")

     dialog$setAlternativeButtonOrder("ok", "cancel", "help")


     Since  2.6

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

     Derived by RGtkGen from GTK+ documentation

