Definable Line Drawing Format

A definable line drawing format is an alternate method of customizing alarm line drawing using VTS code. If the line format is negative, the format is a definable format. The negative of LineFormat indicates the number of fields that will be drawn on the line. By scoping into the DrawList (see Displaying an Alarm List – DrawList Module), the format array found within the AlarmPanel can be setup to draw the line. To setup the array, a service can be created, which initializes the array, and then slays itself whenever the list is drawn. Line formats 1 – 4 can also be adjusted using this method.

The format array:

FormatArray[4][N] each column contains the attributes for a certain field.

The rows are:

 

0: 

Field number, from the array generated by DBListGet.

1: 

Left side coordinate of the area to draw the field.

2: 

Width (in pixels) of the area to draw the field.

3: 

Format string for the data:

 

Timage\Number_Hatch.gif

Time, where the image\Number_Hatch.gif is the number format index as defined for the Time function. Add 100 for each digit in fractional seconds.

Dimage\Number_Hatch.gif

Date, where the image\Number_Hatch.gif is the date format index as defined for the Date function. Field should be in seconds since January 1, 1970.

S: 

Text string, displayed as defined in field.