AlarmBanner.AddMenuSeparator
The AlarmBanner.AddMenuSeparator function allows a script to add a separator line to the context-sensitive menu that is available via the Alarm Banner in ViewX and Virtual ViewX. The AlarmBanner.AddMenuSeparator function is only available for use in Alarm Banner scripts and has to come after the BuildAlarmMenu function in the script.
Syntax |
AlarmBanner.AddMenuSeparator |
Description |
Adds a separator line below a menu item in the context-sensitive menu that is available for alarms in the Alarm Banner. The separator line is added below the last menu item that appears before the AlarmBanner.AddMenuSeparator function in the script. |
Arguments |
None |
Returns |
None |
Example:
In this example, the AlarmBanner.AddMenuSeparator function is used to add a separator line between the "Print Alarm Details" and "Display Alarm Form" options on the context-sensitive menu for the Alarm Banner:
Function BuildAlarmMenu
AlarmBanner.AddMenuItem "Show Alarm Details","AlarmInfo"
AlarmBanner.AddMenuItem "Print Alarm Details","PrintAlarmInfo"
AlarmBanner.AddMenuSeparator
AlarmBanner.AddMenuItem "Display Alarm Report Form","DisplayAlarmForm"
End Function