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

Slider Switch Tool - ActiveX Properties

The Slider Switch Tool is an ActiveX control. As such, a Slider 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

AutoCenter

Enables automatic centering of the object within its boundary. Default is 1 - Yes. If set to 0 - No, the component is aligned left in the boundary. OffsetX and OffsetY can be used to move the placement of the object in the boundary.

OffsetX

OffsetY

AutoFrameRate

Specifies whether the object controls 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

BackGroundPicture

BackGroundPicture

Specifies a background picture for the object.

 

BorderStyle

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

 

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.

 

EndsMargin

Specifies the margin (in pixels) between the object and its boundary. Default is 5.

 

Height

Specifies the height (in pixels) of the object.

 

KeyArrowStepSize

Specifies the increment applied to the switch position when the arrow keys are pressed. Default is 1.

 

KeyPageStepSize

Specifies the increment applied to the switch position when the Page Up or Page Down keys are pressed. Default is 2.

 

OffsetX

Specifies the offset of the object from its x-axis. Default is 0.

 

OffsetY

Specifies the offset of the object from its y-axis. Default is 0.

 

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.

 

Orientation

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

 

OrientationLabels

Specifies which side of the object the labels are drawn.

 

PointerBitmap

Specifies the bitmap to be shown in place of the pointer. The PointerStyle property must be set to Bitmap. For best results, match the background color of the bitmap to the color of the track.

PointerStyle

PointerColor

Specifies the color of the pointer. PointerStyle must be set to Pointer or Bar otherwise the PointerIndicatorActiveColor  and PointerIndicatorInactiveColor colors are used. Default is gray (RGB 236.233.216).

PointerStyle

PointerIndicatorActiveColor

PointerIndicatorInactiveColor

PointerHeight

Specifies (in pixels) the height of the pointer. Default is 10.

PointerWidth

PointerHighLightColor

Specifies the color used to highlight the pointer. Default is white (RGB 255.255.255)

 

PointerIndicatorActiveColor

Specifies the color of the pointer when it is being moved. Default is red (RGB 255.0.0). The color is shown only if the PointerStyle property is set to LED, Light Bar, or Bar Color.

PointerStyle

PointerIndicatorInactiveColor

PointerIndicatorInactiveColor

Specifies the color of the pointer when it is idle. Default is black (RGB 0.0.0). The color is shown only if the PointerStyle property is set to LED, Light Bar, or Bar Color.

PointerStyle

PointerIndicatorActiveColor

PointerStyle

Specifies the appearance of the pointer indicator. Default is 0 - ispsLed. Other options are 1 - ispsPointer, 2 - ispsBar, 3 - ispsLightBar, 4 - ispsBarColor, and 5 - ispsBitmap.

 

PointerWidth

Specifies the width (in pixels) of the pointer indicator. Default is 13.

PointerHeight

Position

Specifies the starting position of the pointer. Default is 0. In Run mode the position is determined by the point associated with the object.

 

PositionIndicatorBevelStyle

Specifies the outer bevel style of the position indicator. Default is 2 - ibsLowered. Other options are 0 - ibsNone and 1 - ibsRaised.

 

PositionIndicatorColor

Specifies the color of the position indicator. Default is cyan (RGB 0.255.255).

PositionIndicatorStyle

PositionIndicatorMargin

Specifies the margin (in pixels) between the position indicators and the track. Default is 2.

 

PositionIndicatorSize

Specifies the size (in pixels) of the position indicator size. Default is 3.

 

PositionIndicatorStyle

Specifies the style of the position indicator. Default is 0 - issisDot. Other option is 1 - issisLine.

 

PositionLabelActiveFont

Specifies the font of the active position label. Default is MS Sans Serif (8 point).

PositionLabelActiveFontColor

PositionLabelActiveFontColor

Specifies the color of the active position label font. Default is black (RGB 0.0.0).

PositionLabelActiveFont

PositionLabelInactiveFont

Specifies the font of the inactive position labels. Default is MS Sans Serif (8 point).

PositionLabelActiveFontColor

PositionLabelInactiveFontColor

Specifies the color of the inactive position label font. Default is black (RGB 0.0.0).

PositionLabelActiveFont

PositionLabelMargin

Specifies the margin (in pixels) between the position labels and position indicators. Default is 5.

 

PositionLabels

Specifies default position labels. In Run mode these labels will be replaced by the enumeration table values or descriptions. Defaults are Low, Medium, and High.

[PositionLabel]

[PositionOrder]

ShowFocusRect

Enables display of the focus rectangle.

Tabstop

ShowPositionIndicators

Enables display of the position indicators. Default is 1 - Yes.

 

ShowPositionLabels

Enables display of the position labels. Default is 1 - Yes.

 

TrackColor

Specifies the color of the track. Default is white (RGB 255.255.255).

lated property: TrackStyle

TrackStyle

TrackStyle

Specifies the style of the slider’s track. Default is 0 - istsBox. Other options are 1 - istsLine, 2 - istsBevelLowered, and 3 - istsRaised.

 

Transparent

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

 

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.

 
Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.