CygNet Studio > Using CygNet Studio Tools and Controls > Toggle Switch Tool > ActiveX Properties

Toggle Switch Tool - ActiveX Properties

The Toggle Switch Tool is an ActiveX control. As such, a Toggle 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 OCX Properties dialog box, which is accessed by clicking the (OCXProperties) property.

Property Description Related Properties

Active

Enables the switch position to be up by default. 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

BorderStyle

Specifies the border style of the object. Default is 0 - ibsNone. Other options are 1 - ibsRaised and 2 - ibsLowered.

 

DragToToggle

Enables the user to drag the switch to change its position. Default is 0 - No.

 

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.

 

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

SwitchBevelStyle

Specifies the bevel style of the toggle. Default is 1 - ibsRaised. Other options are: 0 - ibsNone and 2 - ibsLowered.

 

SwitchHeight

Specifies the height (in pixels) of the switch.

 

SwitchOrientation

Specifies the orientation of the object. Default is 0 - ioVertical.

 

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.

 

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.