gtkDialogNewWithButtons        package:RGtk2        R Documentation

_g_t_k_D_i_a_l_o_g_N_e_w_W_i_t_h_B_u_t_t_o_n_s

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

     Creates a new 'GtkDialog' with title 'title' (or 'NULL' for the
     default title; see 'gtkWindowSetTitle') and transient parent
     'parent' (or 'NULL' for none; see 'gtkWindowSetTransientFor'). The
     'flags' argument can be used to make the dialog modal
     ('GTK_DIALOG_MODAL') and/or to have it destroyed along with its
     transient parent ('GTK_DIALOG_DESTROY_WITH_PARENT'). After
     'flags', button text/response ID pairs should be listed, with a
     'NULL' pointer ending the list. Button text can be either a stock
     ID such as 'GTK_STOCK_OK', or some arbitrary text. A response ID
     can be any positive number, or one of the values in the
     'GtkResponseType' enumeration. If the user clicks one of these
     dialog buttons, 'GtkDialog' will emit the 'gtkDialogResponse'
     signal with the corresponding response ID. If a 'GtkDialog'
     receives the '"delete-event"' signal,  it will emit ::response
     with a response ID of 'GTK_RESPONSE_DELETE_EVENT'. However,
     destroying a dialog does not emit the ::response signal; so be
     careful relying on ::response when using the 
     'GTK_DIALOG_DESTROY_WITH_PARENT' flag. Buttons are from left to
     right, so the first button in the list will be the leftmost button
     in the dialog.

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

     gtkDialogNewWithButtons(title = NULL, parent = NULL, flags = 0, ..., show = TRUE)

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

 'title': [character]  Title of the dialog, or 'NULL'

'parent': ['GtkWindow']  Transient parent of the dialog, or 'NULL'

 'flags': ['GtkDialogFlags']  from 'GtkDialogFlags'

   '...': response ID for first button, then additional buttons, ending
          with 'NULL'

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

     Here's a simple example:


     # Explicit
     dialog <- gtkDialogNewWithButtons("My dialog", main_app_window,
                                       c("modal",
     "destroy-with-parent"), 
                                       "gtk-ok",
     GtkResponseType["accept"], 
                                       "gtk-cancel",
     GtkResponseType["reject"])
     ## Also via collapsed constructor
     dialog <- gtkDialog("My dialog", main_app_window,
                         c("modal", "destroy-with-parent"), 
                         "gtk-ok", GtkResponseType["accept"], 
                         "gtk-cancel", GtkResponseType["reject"])



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

     ['GtkWidget']  a new 'GtkDialog'

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

     Derived by RGtkGen from GTK+ documentation

