CheckBox
Definition
CheckBox
components can detect user taps and can change their boolean state in response.
A CheckBox
component raises an event when the user taps it. There are many properties affecting its appearance that can be set in the Designer or Blocks Editor.
Properties
- BackgroundColor
- Specifies the background color of the
CheckBox
as an alpha-red-green-blue integer. - Checked
- Set to
true
if the box is checked,false
otherwise. - Enabled
- Specifies whether the
CheckBox
should be active and clickable. - FontBold
- Specifies whether the text of the
CheckBox
should be bold. Some fonts do not support bold. - FontItalic
- Specifies whether the text of the
CheckBox
should be italic. Some fonts do not support italic. - FontSize
- Specifies the text font size of the
CheckBox
, measured in sp(scale-independent pixels). - FontTypeface
- Specifies the text font face of the
CheckBox
as default, serif, sans serif, or monospace. - Height
- Specifies the
CheckBox
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
CheckBox
’s vertical height as a percentage of theScreen
’sHeight
. - Text
- Specifies the text displayed by the
CheckBox
. - TextColor
- Specifies the text color of the
CheckBox
as an alpha-red-green-blue integer. - Visible
- Specifies whether the
CheckBox
should be visible on the screen. Value istrue
if theCheckBox
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
CheckBox
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
CheckBox
as a percentage of theScreen
’sWidth
.