<< Click to Display Table of Contents >>
SetConfig |
SetConfig([BackgroundColor], [TextColor], [BlinkMode], [TextColor2])
Configures the background color, the text color, the blinking mode, and the text color if the blinking mode is equal to 3 (three) for the alarm or severity. If the Alarm Color object is configuring a specific severity, that is, different from -1 (minus one), the informed parameters automatically force an update of the equivalent overriding properties (OverrideBackgroundColor for the BackgroundColor parameter, OverrideTextColor for the TextColor parameter, OverrideBlinkMode for the BlinkMode parameter, and TextColor2 for the TextColor2 parameter if the BlinkMode property is equal to three). If the Severity property is equal to -1 (minus one), then this configuration is performed for default alarm values of background color, text color, and blinking mode, and this configuration may or may not propagate for each severity, depending on the overriding values of each one of the equivalent properties. Example:
' Configures only the BackgroundColor property
' of the active alarm with high severity
Set HighActiveAlarm = Screen.Item("E3Alarm1").ColorActiveAlarm(0)
HighActiveAlarm.SetConfig RGB(0,0,255)
' Configures only the TextColor property
' of the active alarm with medium severity
Set MediumActiveAlarm = Screen.Item("E3Alarm1").ColorActiveAlarm(1)
MediumActiveAlarm.SetConfig , RGB(255,255,255)
' Configures only the BlinkMode property
' of the active alarm with low severity
Set LowActiveAlarm = Screen.Item("E3Alarm1").ColorActiveAlarm(2)
LowActiveAlarm.SetConfig ,,1
' Configures all properties of the active alarm
Set ActiveAlarm = Screen.Item("E3Alarm1").ColorActiveAlarm(-1)
ActiveAlarm.SetConfig RGB(0,255,0), RGB(0,128,0), 2