CheckBox
Last Updated On 2021-07-16
Version 2MinSDK 7Tutorial Video
Checkbox that raises an event when the user clicks on it. There are many properties affecting its appearance that can be set in the Designer or Blocks Editor.
Properties
You can set the below properties in the UI part of the builder.
- BackgroundColor - it's a color value which is set to &h00ffffff by default.
- Checked - it's a boolean value which is set to false by default.
- CustomFontTypeFace - it's a asset value which is set to blank by default.
- Enabled - it's a boolean value which is set to true by default.
- FontBold - it's a boolean value which is set to false by default.
- FontItalic - it's a boolean value which is set to false by default.
- FontSize - it's a non negative float value which is set to 14.0 by default.
- FontTypeface - it's a typeface value which is set to 0 by default.
- HeihMargin - it's a four value which is set to 0,0,0,0 by default.
- HeihPadding - it's a four value which is set to 0,0,0,0 by default.
- MarginBottom - it's a non negative float value which is set to 0 by default.
- MarginLeft - it's a non negative float value which is set to 0 by default.
- MarginRight - it's a non negative float value which is set to 0 by default.
- MarginTop - it's a non negative float value which is set to 0 by default.
- PaddingBottom - it's a non negative float value which is set to 0 by default.
- PaddingLeft - it's a non negative float value which is set to 0 by default.
- PaddingRight - it's a non negative float value which is set to 0 by default.
- PaddingTop - it's a non negative float value which is set to 0 by default.
- Text - it's a string value which is set to blank by default.
- TextColor - it's a color value which is set to &hff000000 by default.
- Visible - it's a visibility value which is set to true by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
BackgroundColor
The background color of the CheckBox as an alpha-red-green-blue integer.
Checked
True if the box is checked, false otherwise.
CustomFontTypeFace
Sets the custom font
Enabled
True if the CheckBox is active and clickable.
FontSize
Specifies the text font size of the CheckBox in scale-independent pixels.
Height
Specifies the vertical height of the CheckBox, measured in pixels.
HeightPercent
Specifies the vertical height of the CheckBox as a percentage of the height of the Screen.
MarginBottom
Property for MarginBottom
MarginLeft
Property for MarginLeft
MarginRight
Property for MarginRight
MarginTop
Property for MarginTop
PaddingBottom
Property for PaddingBottom
PaddingLeft
Property for PaddingLeft
PaddingRight
Property for PaddingRight
PaddingTop
Property for PaddingTop
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 is true if the CheckBox is showing and false 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 the width of the Screen.
Events
You can set the below event blocks in the blocks section of the builder.
Changed
User tapped and released the CheckBox.
GotFocus
CheckBox became the focused component.
LostFocus
CheckBox stopped being the focused component.