Content:
- Methods

CheckBoxes can be used to let the user en- or disable specific options in your app.

chk = app.CreateCheckBox( text, width, height, options ) → app object: CheckBox

They consist of a ticker box on the left and a text label on the right side.

It is disabled by default, but you can enable it with the SetChecked method to change its initial state.

Use the SetOnTouch method of the CheckBox object to define a function you want to be called when the CheckBox is touched. There you can read  the 'isChecked' parameter to get the current state of the CheckBox:

Example - Example click to expand contents 

Methods

The following methods are available on the CheckBox object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetChecked() → Boolean
GetHeight( options ) → Number
GetLeft( options ) → Number
GetParent() → app object
GetPosition( options ) → Object: { left, top, width, height }
GetText() → String
GetTextSize( mode ) → Number
GetTop( options ) → Number
GetType() → String: “CheckBox”
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth ) → Boolean
IsVisible() → Boolean
Method( name, types, p1, p2, p3, p4 ) → all types
SetScale( x, y )
Show()