|
原文:http://www.members.shaw.ca/AlbertKallal/Ribbon/ribbon.htm
作者:Albert D. Kallal
时间: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 类,只需用很少的代码就能改变功能区按钮控件可用状态、标题文字以及按钮上的图片)
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"
The entire article, along with a sample implementation of the class, is available.
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|