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.
The default handler is set by the addHandlerClicked
method. This is called when the button is
toggled. If one wishes to have the handler called only when
checked to indicate TRUE
, say, one should check the state
of the widget in the handler (e.g., if(svalue(h$obj))
).