gcheckbox              package:gWidgets              R Documentation

_C_o_n_s_t_r_u_c_t_o_r _o_f _w_i_d_g_e_t _t_o _i_n_d_i_c_a_t_e _w_h_e_t_h_e_r _a _v_a_l_u_e _i_s _d_e_s_i_r_e_d _o_r
_n_o_t

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

     A checkbox shows a value and a box to  check indicating if the
     value is desired or not.

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

     gcheckbox(text, checked = FALSE, handler = NULL, action = NULL,
     container = NULL, ..., toolkit = guiToolkit())

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

    text: Text to show by box

 checked: Logical indicating initial state of box

 handler: Called when box is toggled.

  action: Passed to handler

container: Optional container to attach widget to.

     ...: 

 toolkit: Which toolkit to use?

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

     The value of the widget is either 'TRUE' or 'FALSE'.

     The 'svalue' method returns a logical indicating 'TRUE' if the box
     is checked.

     The 'svalue<-' method can be used to set the value using a
     logical.

     The '"["' method returns the label on the box.

     The '"[<-"' method can be used to change the label on the box.

     Any 'addhandlerchanged' handler is called when the button is
     toggled.

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

     John Verzani

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

     Methods for gComponent objects are detailed in 'gWidgets-methods'.

     Event Handlers are detailed in 'gWidgets-handlers'.

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

     ## Not run: 
      gcheckbox("checked", container=TRUE, handler=function(h,...) {
     cat("The widget is checked",svalue(h$obj), "\n")
     })
     ## End(Not run)

