Graphics Improvements
- Last UpdatedJul 13, 2023
- 2 minute read
Citect SCADA 2018 includes the following enhancements to Graphics and the Graphics builder.
Name a Graphics Object
In Citect SCADA 2018 you can now name graphics objects ( for example, a Polyline, Rectangle, Text and Genie). Use this name to reference a graphics object via expressions and Cicode at runtime.
Configure the animation name when defining the general access properties of a graphics object.
See the following topics for more information.
Animated Polygon Vertices
Plant SCADA now allows you to associate a tag or Cicode expression with the vertices in a polygon. This means the shape of a polygon can be manipulated at runtime in response to values generated by a production system.
This is achieved by applying offset values to each vertex that define a path along which the vertex can move. As the return value for an expression changes, a vertex will move along the path defined for it, altering the shape of the polygon.
For more information see Animate a Polygon at Runtime.
Pinned Windows
Windows can now be "pinned" at specified locations within a main window or within other pinned windows. A new Cicode function WinNewPinAt() has been added that when configured opens a new display window at a specified location, relative to the current active window, with a selected page displayed. The window can later be removed with the WinFree() function.
For more information see WinNewPinAt.
Activate/Deactivate
You can now configure events to run when a window is activated or deactivated. This is useful when using pinned windows on a page. For example, the activate event can be used to run an event if the user clicks on the pinned window.
Dynamically Display Symbols
In Plant SCADA 2018 you can use the DspSym Cicode function with a Genie to dynamically display content that is only generated at runtime.
You can also use bitmap and non-bitmap images as part of a symbol set in Graphics Builder.
See Dynamically Instantiate a Genie at Runtime for more information.
Runtime Cursor
The runtime input focus cursors’ color can now be set to transparent. Also, a new function DspSetCurColor() has been added to allow simpler dynamic setting of the cursor color.