Widget/Checkbox

From Gui

A Checkbox is a widget that has a state of being "checked" or "unchecked" (or "selected" or "deselected").

Checkboxes can be grouped together. Some groups only allow one box to be "checked" at a time.

NOTE: some toolkits allow for "three state" checkboxes. These checkboxes can be "checked", "unchecked", or "neither".

Properties

  • id
  • checked (boolean)
  • group (optional)

Events

Toolkits That Differ

  • Qt uses the parent widget of their radio button widgets to infer group and has a special pseudowidget (QButtonGroup) that can be used for extra control
  • XUL has a special pseudowidget that is used as the group for all radio buttons to infer group

NOTE: inputs can infer group and outputs can create pseudoparents for checkboxes that have a group

Personal tools