nState | (Long) Required alarm state. See "Colors of alarm states" configurator. |
---|---|
sColor | (String) Alarm state color in the form of RGB String #RRGGBB (e.g. red #ff0000) see Working with colors description. |
This method is also functional in Web panels.
var oViewer = pMe.Items("/Viewer");
oViewer.SetStateColor(3, "#ff0000");