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: | |
|
|
T |
Time, where the |
|
D |
Date, where the | |
|
S: |
Text string, displayed as defined in field. | |