Office中國(guó)論壇/Access中國(guó)論壇

標(biāo)題: 一個(gè)MVP的Ribbon實(shí)例 [打印本頁(yè)]

作者: zhuyiwen    時(shí)間: 2009-4-28 13:03
標(biāo)題: 一個(gè)MVP的Ribbon實(shí)例
原文:http://www.members.shaw.ca/AlbertKallal/Ribbon/ribbon.htm
作者:Albert D. Kallal
時(shí)間:Friday, April 23, 2009

Access MVP Albert Kallal has developed a Ribbon class object that you can use to simplify modifying Ribbon commands at runtime.
The office ribbon is an amazing new interface.
The problem with the ribbon is that takes a lot of code to change the ribbon at runtime.
Solution: With my ribbon class you can enable, hide, change label text, or pictures of a button with great ease and very little code. (使用 Ribbon 類,只需用很少的代碼就能改變功能區(qū)按鈕控件可用狀態(tài)、標(biāo)題文字以及按鈕上的圖片)
This ribbon class allows you to use the simple "old style" syntax to enable, hide, or change the text of a button.
e.g.:
meRib("Button1").enabled = true
meRib("Button1").label = "this is the new text" & _
                      " for button1 on the ribbon"
meRib("Button1").picture = "HappyFace.png"
[attach]37509[/attach]

[attach]37510[/attach]

The entire article, along with a sample implementation of the class, is available.


[attach]37508[/attach]
作者: xuwenning    時(shí)間: 2009-4-28 13:39
學(xué)習(xí)
學(xué)習(xí)
作者: andymark    時(shí)間: 2009-4-28 13:40
好東西,  謝謝分享~~
作者: ty_1029    時(shí)間: 2009-4-28 14:29
牛人,就是看起來(lái)累啊,外語(yǔ)太一般了~~
作者: iamee    時(shí)間: 2009-4-28 16:08
學(xué)習(xí)一下怎么回事
作者: iamee    時(shí)間: 2009-4-28 16:10
2007,打不開(kāi)
作者: ey1001    時(shí)間: 2009-4-29 12:25

作者: WDLRCZT    時(shí)間: 2009-4-29 12:59
好東西收藏了
作者: sxb2007    時(shí)間: 2009-4-29 15:30
好東西收藏了
作者: haiying1234    時(shí)間: 2009-4-29 15:57
:):):)
作者: yanwei82123300    時(shí)間: 2009-5-4 12:00
好東西,  謝謝
作者: davidliu9116    時(shí)間: 2009-5-5 10:31
學(xué)習(xí)一下,謝謝!!
作者: goldowl    時(shí)間: 2009-5-6 12:47
Thanks a lot.
作者: wangjeffson    時(shí)間: 2009-5-7 11:12

作者: yedaoan    時(shí)間: 2009-5-8 22:36
朱亦文貼子,歷業(yè)精典,強(qiáng)列頂你
作者: johnliuzz1974    時(shí)間: 2009-5-21 18:57
看看,收藏
作者: yyjlili    時(shí)間: 2009-5-30 22:50
看看

作者: iceblock    時(shí)間: 2009-6-1 16:16
good
作者: min_summer    時(shí)間: 2009-6-19 13:55
學(xué)習(xí)
作者: 輕風(fēng)    時(shí)間: 2009-7-8 14:07
好東西,要分享。
作者: cowboy910    時(shí)間: 2009-7-21 13:32
look........
作者: babyboys    時(shí)間: 2009-8-23 17:20
本帖隱藏的內(nèi)容需要回復(fù)才可以瀏覽
作者: fengfzg    時(shí)間: 2009-9-2 10:39
研究一下
作者: davidliu9116    時(shí)間: 2009-9-11 13:11
感謝分享
學(xué)習(xí)看看
作者: anyu723    時(shí)間: 2009-10-16 18:25
好東西收藏了
作者: hsyihao    時(shí)間: 2009-10-18 11:40
鳥(niǎo)語(yǔ)看著累呀````
作者: yjjamesband    時(shí)間: 2009-10-20 12:58
學(xué)習(xí)一下
作者: LeeTien    時(shí)間: 2010-2-23 22:21
呵呵,不錯(cuò)
作者: sxb2007    時(shí)間: 2010-4-3 22:14
好東西收藏了
作者: pangzcn    時(shí)間: 2012-1-13 23:05
Set meRib = colRibbons(frm.RibbonName).Controls(strControl)
俺的2010這句報(bào)錯(cuò)!
作者: hjb016    時(shí)間: 2012-11-13 14:01
運(yùn)行老出錯(cuò)!
作者: foxsir    時(shí)間: 2013-4-2 13:59
非常感謝樓主分享。!{:soso_e100:}
作者: 李力軍2    時(shí)間: 2014-3-5 21:48
好,頂!




歡迎光臨 Office中國(guó)論壇/Access中國(guó)論壇 (http://ctxi.cn/) Powered by Discuz! X3.3