以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  帮忙改一下主菜单事件代码!  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=16391)

--  作者:lsf5138
--  发布时间:2012/2/13 9:04:00
--  帮忙改一下主菜单事件代码!

切换 按钮移到了菜单配置栏  此段代码要改一下,谢谢!

 

If CurrentTable Is Nothing Then
    Return
End If

\'此段代码用于更新日常工作区"切换"按钮的状态,如果按钮已经改名或者移到别的功能区,请对应地修改此段代码
\'如果删除了此按钮,应该删除此段代码
Static tb As RibbonMenu.ToggleButton
If tb Is Nothing Then
    tb = CType(RibbonTabs("Common").Groups("SortAndFilter").Items("Toggle"), RibbonMenu.ToggleButton)
End If
If (CurrentTable.Filter > "" AndAlso CurrentTable.ApplyFilter = True) OrElse (CurrentTable.Sort > "" AndAlso CurrentTable.ApplySort = True) Then
    If tb.Pressed = False Then
        tb.Pressed = True
    End If
Else
    If tb.Pressed = True Then
        tb.Pressed = False
    End If
End If


--  作者:狐狸爸爸
--  发布时间:2012/2/13 9:05:00
--  

将:

RibbonTabs("Common").Groups("SortAndFilter").

 

改为:

ConfigBar.