Rocker Switch Tool - ActiveX Properties

The Rocker Switch Tool is an ActiveX control. As such, a Rocker Switch Tool object has an ActiveX page on the Property Sheet. Many of these properties are the object’s formatting properties. Values for the ActiveX Properties can be set directly on the ActiveX page or in the OCXProperties dialog box, which is accessed by clicking the (OCXProperties) property.

Property Description Related Properties

Active

Enables the switch to be "on" by default (LED illuminated and switch position up) Default is 0 - No.

 

AutoFrameRate

Enables the object to control its update rate. Default is 0 - No. When set to 1 - Yes, the object is repainted at the rate specified by the UpdateFrameRate property.

UpdateFrameRate

BackGroundColor

Specifies the color of the object background. Default is gray (RGB 236.233.216). The background color is not shown if the Transparent property is set to 1 — Yes.

Transparent

[AlarmElement]

BorderMargin

Specifies the margin (in pixels) between the switch and the object border. Default is 2.

 

Enabled

Enables user interaction with the object. If set to 0 - No, the object is still shown but its context menu is disabled. Default is 1 - Yes.

 

Height

Specifies the height (in pixels) of the object.

 

IndicatorActiveColor

Specifies the color of the LED indicator when the value of the object’s point is "on." Default is green (RGB 0.255.0).

 

IndicatorMargin

Specifies the margin (in pixels) between the LED indicator and the switch. Default is 3.

 

MouseControlStyle

Specifies if the user has to click on the LED or anywhere on the object to toggle the position of the switch. Default is 0 - imcsClickAnyWhere.

 

OptionSaveAllProperties

Enables the SaveAllPropertiesToFile method to save just the ActiveX Properties or all object properties. Default is 0 - No, which means that only ActiveX Properties are saved.

 

ShowFocusRect

Enables display of the focus rectangle.

Tabstop

Transparent

Enables transparency of the object background. Default is 0 - No.

BackGroundColor

UpdateFrameRate

Specifies the rate (in seconds) of repainting the object. Default is 60. Applicable only when AutoFrameRate is set to 1 - Yes.

AutoFrameRate

Visible

Enables the visibility of the object on TheView. Default is 1 - Yes.

 

Width

Specifies the width (in pixels) of the object.