Skip to main content

TdxCustomToggleSwitch Class

Serves as the base class for classes that implement toggle switch editors.

Declaration

TdxCustomToggleSwitch = class(
    TcxCustomCheckBox
)

Remarks

A toggle switch is a touch-friendly version of a traditional check box. A toggle switch replaces a check box with a thumb, which can be positioned at one of available locations indicating the current checked state (on, off, or indeterminate).

End-users can switch the checked state either by dragging the thumb, clicking the shaft next to the thumb, or pressing the Space key while the editor is focused.

Pressing the Space key immediately reverses the thumb position, while two other methods move the thumb with smooth animation.

The TdxCustomToggleSwitch class extends its ancestor class with the properties that are specific to toggle switch editors. The TdxCustomToggleSwitch class implements all the functionality needed by its descendants, TdxToggleSwitch and TdxDBToggleSwitch, which primarily publish inherited properties and events.

See Also