Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetStateColor - method of the PmgAlarmStateViewer object

Description:
Sets the color of alarm state.
Syntax:
Empty SetStateColor(Long nState, String sColor)
Parameters:
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.
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.14 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice