http://www.foxtable.com/help/topics/0545.htm
示例二
你是问的菜单中的自动计算吧?
在菜单的系统事件:AfterSelRangeChange中的代码
Dim t As Table
RibbonMenu.StatusBar.Message3 = ""
Vars("SysUpdateAggregate") = False
If e.Table IsNot CurrentTable OrElse CurrentTable Is Nothing Then
Return
Else
t = CurrentTable
End If
If t.TopRow = t.BottomRow AndAlso t.LeftCol = t.RightCol Then
Return
End If
For c As Integer = t.LeftCol To t.RightCol
If c < 1 Then
Continue For
End If
If t.Cols(c).IsNumeric = False Then
Return
End If
Next
Vars("SysUpdateAggregate") = True
然后再在各选项中的代码,比如自动计算中的代码:
RaiseSystemEvent(CurrentTable,SystemEventTypeEnum.AfterSelRangeChange)
[此贴子已经被作者于2011-8-31 9:53:56编辑过]