CygNet Studio > Using CygNet Studio Tools and Controls > LED Bar Tool > ActiveX Properties

LED Bar Tool - ActiveX Properties

The LED Bar Tool is an ActiveX control. As such, an LED Bar 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

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.

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.

BorderStyle

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

 

CurrentMax

Specifies the maximum value reached by the Position property. It is reset each time the Position value is greater than the CurrentMax value. The only way to access the value is programmatically (i.e., using script).

CurrentMin

Specifies the minimum value reached by the Position property. It is reset each time the Position value is less than the CurrentMin value. The only way to access the value is programmatically (i.e., using script).

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.

 

MinMaxFixed

Not applicable. Default is 0 - No.

 

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.

 

Position

Specifies the position of last illuminated segment. Default is 0. If the object is associated with a point, the point’s value sets the position. If PositionPercent is specified, this value is calculated. If this value is specified, PositionPercent is calculated.

PositionMax

Specifies the upper limit of the segments. Default is 100.

PositionMin

Specifies the lower limit of the segments. Default is 0.

PositionPercent

Specifies the level of the illuminated segment in terms of percent in regards to the range (PositionMax and PositionMin). If Position is specified, this value is calculated. If this value is specified, Position is calculated. Default is 0. Valid range is 0.00 (0%) and 1.00 (100%).

SectionColor1

Specifies the color of Section 1. Default is green (RGB 0.128.0).

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

 

SectionColor2

Specifies the color of Section 2. Default is yellow (RGB 255.255.0).

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

 

SectionColor3

Specifies the color of Section 3. Default is red (RGB 255.0.0).

Note: In script, you can set this and other color properties using the VBScript function 'control.somecolor = RGB (255,0,0).'

 

SectionCount

Specifies the number of color sections. Default is 1.

 

SectionEnd1

Specifies the end value for Section 1. Default is 50.

 

SectionEnd2

Specifies the end value for Section 2. Default is 75.

 

SegmentDirection

Specifies the direction the segments illuminate as the Position property increases. Default is 0 - idUp. Other options are 1 - idDown, 2 - idRight, and 3 - idLeft. If set to Up or Down, the object boundary must be vertical. If set to Right or Left, the object boundary must be horizontal.

 

SegmentMargin

Specifies the margin (in pixels) between the digits and the object boundary. Default is 2.

 

SegmentSize

Specifies the size (in pixels) of each segment. Default is 5.

 

SegmentSpacing

Specifies the spacing (in pixels) between each segment. Default is 2.

 

SegmentStyle

Specifies the style of each segment. Default is 0 - ibssRectangle. Other options are 1 - ibssCircle and 2 - ibssTriangle.

 

ShowOffSegments

Enables display of non-illuminated segments. Default is 1 - Yes.

 

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.

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.