Check buttons inherit many properties and methods from the toggle buttons mentioned previouslly, but look a little different. Rather than being buttons with text inside them, they are small squares with the text to the right of them. These are often used for toggling on and off in applications.
Gtk::CheckButton.new Gtk::CheckButton.new( "I'm a label") Gtk::CheckButton.new( item )
The first line above creates a blank check button, and the second creates a check button with the label "I'm a label" beside it. The third places a Gtk::Stock item into the button.
Checking the state of the check button is identical to that of the toggle button.
Prev | Next |