Content:
- Methods

Creates a switch that can be toggled on and off.

swt = MUI.CreateSwitch( value, color ) → Object

Example - Basic click to expand contents 

Example - With Value & Color click to expand contents 

Methods

The following methods are available on the Switch object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options ) → Number
GetLeft( options ) → Number
GetParent() → app object
GetPosition( options ) → Object: { left, top, right, bottom }
GetTop( options ) → Number
GetType() → String: “Seekbar”
GetValue() → Boolean
GetWidth( options ) → Number
Gone()
IsEnabled() → Boolean
IsOverlap( obj, depth ) → Boolean
IsVisible() → Boolean