TrendColor Property
Description
Defines or returns the color of the trend display.
The trend display indicates the tendency (rising or falling) of the measuring value being
monitored
by a small arrow. In order to activate the trend display, the Trend property must be
set to "True". LONG write-read access.
Determination of Color Value
The color is displayed in RGB format (Red, Green, Blue). Specify the corresponding decimal
value for each of the three RGB values (value range from 0 to 255).
Use VBA function "RGB" to assign a color to a property. The color "red", for example, is
represented as follows: RGB(255, 0, 0)
Example:
The "BarGraphConfiguration()" procedure configures In this example the trend in the measured
value will be indicated. The trend display will be set to "Red":
Sub BarGraphConfiguration()
'VBA748
Dim objBarGraph As HMIBarGraph
Set objBarGraph = ActiveDocument.HMIObjects.AddHMIObject("Bar1", "HMIBarGraph")
With objBarGraph
.trend = True
.TrendColor = RGB(255, 0, 0)
End With
End Sub
See also
Trend Property (Page 2313)
BarGraph Object (Page 1819)
Trigger Property
Description
Returns a Trigger object. Use the Trigger property when making a property dynamic with the
aid of a script.
VBA for Automated Configuration
4.4 The object model of the Graphics Designer
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
2314
System Manual, 11/2008,