TW3ToggleSwitch

From Smart Mobile Studio
Jump to: navigation, search


Represents class for toggle (on/off) control.

TW3ToggleSwitch


Unit: W3ToggleSwitch.pas


Hierarchy
TObject
TW3TagObj
TW3Component
TW3MovableControl
TW3CustomControl
TW3ToggleSwitch
Properties
Property-icon.png Checked
Methods
Method-icon.png Toggle


Properties

Property-icon.png Checked

Specifies whether control is in “ON” (True) or “OFF” (False) state

property Checked: Boolean read getChecked write setChecked;

Remarks:

Changing this property calls Toggle method.


Methods

Method-icon.png Toggle

procedure Toggle;

Toggle Checked property (from True to False and vice versa). Inside this method OnChanged event is triggered which can be used to detect User’s action on control.