Indicate Questionable and Manual Data
The unlinked widget, question mark and exclamation mark graphics, used to indicate any of these tag states in a widget, are created by the module TagIconMarker.
This module places a set of icons on the screen centered over a given rectangular region. The icon displayed is cycled with each passage of the period, measured in seconds. The images are provided by the module, but you are free to add your own symbols.
Centering the symbol within the user-defined drawing area requires some calculation. For more information about this function and an example taken from a VTScada tag widget, see IconMarker in the VTScada Function List.
The following example places a set of icons on the screen centered over a given rectangular region. The icon displayed is cycled with each passage of the period, measured in seconds.
{***** Signify when data is questionable *****}
GUITransform(0, 100, 100, 0,
1, 1, 1, 1, 1 { Scaling },
0, 0 { Movement },
1, 0 { Visibility, Reserved },
0, 0, 0 { Selectability },
Variable("Code\Library")\TagIconMarker(\Root, FALSE));