Tank Tool - ActiveX Properties

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

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

[AlarmElement]

BorderStyle

Specifies the border style. Default is 0 - ibsNone. Other options 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).

Position

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).

Position

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.

Width

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 tank. Default is 0 - ioVertical.

 

PointerColor

Specifies the color of the fill. Default is blue (RGB 0.0.255).

[AlarmElement]

PointerReverse

Enables the fill direction to be reversed. Normal fill direction is top to bottom on a vertical tank, left to right on a horizontal tank.

 

PointerStyle

Specifies the shape of the tank’s fill indicator. Default is -1 - itpsCutOut. Other options are 0 - itpsBar, 1-itpsCutOut, 2 - itpsCutOut2, 3 - itpsLarge Window, and 4 - itpsCustom (no fill indicator).

 

Position

Specifies the fill level. Default is 0. If the object is associated with a point, the point’s value sets the fill level. If PositionPercent is specified, this value is calculated. If this value is specified, PositionPercent is calculated.

PositionMax

PositionMin

PositionPercent

CurrentMax

CurrentMin

PositionMax

Specifies the upper limit of the fill level. Default is 100.

Position

PositionMin

PositionPercent

PositionMin

Specifies the lower limit of the fill level. Default is 0.

Position

PositionMax

PositionPercent

PositionPercent

Specifies the level of the fill 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%).

Position

PositionMax

PositionMin

TankColor

Specifies the interior color of the gradient. Default is silver (RGB 192.192.192).

TanksShadowColor

[AlarmElement]

TankShadowColor

Specifies the exterior color of the gradient. Default is gray (RGB 128.128.128).

TankColor

[AlarmElement]

TankShow

Enables display of the tank exterior. Default is 1-Yes. If set to No, only the fill indicator is shown.

 

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.

Height

Back to top