SetConfig

<< 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, that is, the OverrideBackgroundColor property for the BackgroundColor parameter, the OverrideTextColor property for the TextColor parameter, the OverrideBlinkMode property for the BlinkMode parameter, and the TextColor2 property for the TextColor2 parameter if the BlinkMode property is equal to 3 (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. The next code contains an example of using this method.

' 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

Was this page useful?