Skip to content

CheckBox Widget

This example demonstrates the CheckBox widget, showcasing two checkboxes in a row, one checked ("On") and one unchecked ("Off").

CheckBox with Text Labels

Code

rcnew HLayout{
    rcnew CheckBox{ rcnew Text{ "On" }, value = true },
    rcnew CheckBox{ rcnew Text{ "Off" }, value = false } 
}

Result

CheckBox with text labels

CheckBox animation

CheckBox animation