Check Buttons

Check buttons inherit many properties and functions from the toggle buttons above, 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 options on and off in applications.

The creation and use of check buttos is identical to that of toggle buttons.

def callback(bttn)
    puts ( ? "Active" : "Not active")

# ...

check = "Button"
check.signal_connect('toggled') {callback(check)}