Custom line drawing is an alternate method of customizing the alarm line drawing with VTS code. If the line format is negative, then the format is a definable format.
The negative value of LineFormat indicates the number of fields that will be drawn on the line. By scoping into DrawList, the format array found within the AlarmPanel can be setup to draw the line.
To setup the array, a service can be created that initializes the array and then slays itself whenever the list is drawn. Line formats 1 through 4 can also be adjusted through this method.
The format array is "FormatArray[4][N]"; each column contains the attributes for a certain field.
The rows are:
|
0 |
Field number | |
|
1 |
Left side coordinate of the area to draw field | |
|
2 |
Width (in pixels) of area to draw field | |
|
3 |
Format string for the data: | |
|
|
B |
Bitmap: Field must contain the name of a bitmap in the Bitmap Database. If status field is specified, then the first three characters of the status field are used to determine the bitmap name. |
|
T |
Time: | |
|
D |
Date: | |
|
S |
Text String: Displayed as defined in the field. | |
|
P |
Priority text: The textual representation of the priority from the appropriate alarm priority tag is displayed. | |
|
E |
Event text: The textual description of the alarm status is displayed. | |
|
A |
Area text: The textual value of the area field is displayed. | |
|
M |
Message text: The textual value of the message field is displayed. | |
|
|
Operator text: The textual value of the operator field is displayed. | |
Note: For field types T, D, P, E, A, M, and O, the field number in the format array row is ignored, and the correct fields are automatically selected.