TW3ToggleSwitch



TW3ToggleSwitch


Represents class for toggle (on/off) control.


TW3ToggleSwitch

Unit: SmartCL.Controls.ToggleSwitch.pas

Hierarchy
TObject
TW3TagObj
TW3Component
TW3MovableControl
TW3CustomControl
TW3ToggleSwitch
Properties
propertyicon.png Checked
Methods
methodicon.png Toggle

Properties

propertyicon.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

methodicon.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.