GetAlarmBackgroundColor Method Example

The following example retrieves the color for each alarm priority in the AlarmSummary object AlarmSummaryOCX1.

Dim lLow As OLE_COLOR

Dim lMedium As OLE_COLOR

Dim lHigh As OLE_COLOR

lLow = AlarmSummaryOCX1.GetAlarmBackgroundColor(7)

lMedium = AlarmSummaryOCX1.GetAlarmBackgroundColor(6)

lHigh = AlarmSummaryOCX1.GetAlarmBackgroundColor(5)