Skip to content

Graphic field

The graphic field shows a picture from a project graphic list by tag value: a valve position, a unit mode, an equipment state as a picture. A graphic list is a set of “value or range — picture” pairs from the images/ folder; a new list is created with the button to the right of the field in the editor. Without a tag the field shows the first picture of the list.

“Stretch” fills the field with the picture, otherwise it fits keeping proportions.

Besides the properties of every element — name, position, size, tooltip, rotation, transparency and the operate right:

Property Values Default Description
Tag tag name Tag
GraphicList graphic list Graphics list. Images by tag value; a new list can be created with the button to the right of the field
Stretch true / false false Stretch. The image fills the whole field; otherwise it fits keeping its proportions

Item.Type = Graphic. Any property is read and changed by name: Item.Width = 200. The common element members (Visible, Enabled, Value, Raise, Apply…) are described in Elements from scripts.

Mouse, hover, focus and keyboard — as for any element (see Events and functions).

Another graphic list for the night theme of the screen.

Screen.Items("Valve1").GraphicList = Tags("Night").Value ? "Valve_night" : "Valve";

Binding to another tag — one field shows the valve selected by the operator.

Screen.Items("SelectedValve").Tag = "Valve" + Tags("Valve.Selected").Value + ".State";