The following example describes an ActiveX control, that realises a latched switch with two bit variables. The first variable represents the switch, the second variable the lock. The value of the switching variable of the ActiveX control can only be changed, if the locking variable has the value 0.
The status of the element is displayed with four bitmaps which can be selected in the properties dialog of the control in the zenon Editor.