TW3ToggleSwitch
Represents class for toggle (on/off) control.
Unit: SmartCL.Controls.ToggleSwitch.pas
- Hierarchy
- TObject
- TW3TagObj
- TW3Component
- TW3MovableControl
- TW3CustomControl
- TW3ToggleSwitch
- TW3CustomControl
- TW3MovableControl
- TW3Component
- TW3TagObj
Properties |
---|
Checked |
Methods |
Toggle |
Properties
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
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.