该属性用于过滤报警一览对象中的搁置报警。 语法对象。DisplayShelvedAlarms [=Boolean] 属性DisplayShelvedAlarms 属性语法包含以下部分:
设置DisplayShelvedAlarms 的设置如下:
示例 本例对报警一览对象应用搁置过滤器。 ‘ 对报警一览对象应用搁置筛选器 Public Sub ShelvedAlarmsFilter(FilterFlag As Boolean) Dim AppObj As Object Dim PictureObj As Object Dim CurrentObj As Object If TypeName(Application) = "CFixApp" Then ‘ running in the workspace Set AppObj = Application
Else Set AppObj = App
If AppObj Is Nothing Then Exit Sub End If
End If ‘ 搜索报警一览对象并应用搁置报警筛选器 Set PictureObj = AppObj.ActiveDocument For Each CurrentObj In PictureObj.Page.ContainedObjects If TypeName(CurrentObj) = "AlarmSummaryOCX" Then If CurrentObj.Name = "AlarmSummaryOCX1" Then CurrentObj.DisplayShelvedAlarms = FilterFlag Exit Sub End If End If Next End Sub 应用到 |
让 iFIX 帮助您提高效率,降低成本。 |