Promotic

SetStateColor - method of the PmgAlarmStateViewer object

Description:
Sets the color of the alarm state.
Syntax:
Empty SetStateColor(Long nState, String sColor)
Parameters:
nState(Long) Required alarm state. See "Colors of the alarm states" configurator.
sColor(String) Alarm state color as RGB String in the form "#RRGGBB".
Note:
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
oViewer.SetStateColor(3, "#ff0000");

History:
Pm9.00.14: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.