如何在功能区上设置按键提示? [英] How to set keytip on a ribbon?

查看:93
本文介绍了如何在功能区上设置按键提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将拆分按钮的 keytip 属性的值设置为 CKS ,但是当我在Outlook中执行加载项时2010年,我得到提示,可以使用 Y7 进行访问。我猜这是一些默认的掷界外球和一个任意数字。

I set the value of my keytip attribute for a split button to be "CKS" but when I execute the add-on in Outlook 2010, I get the hint that it's accessible using "Y7". I'm guessing it's some default throw-in and an arbitrary number.

如何强制个字符组合选择有效

How do I force my choice of character combination to be the valid one on the ribbon?

推荐答案

您应该能够通过使用 keytip <功能区的customUI XML中的/ code>属性,但是有时Office程序决定将其更改为 Y1 Y2 等,这可能是由于冲突带有内置控件的按键提示。

You should be able to use your own shortcuts by using the keytip attribute in the customUI XML for the ribbon, but sometimes the Office programs decide to change it to Y1, Y2 etc., possibly because of a conflict with keytips for the built-in controls.

我没有Outlook,但是我在Excel 2010中尝试了选项卡和按钮上的 CKS 键提示,而且有效。以下是用于Excel功能区的XML:

I don't have Outlook, but I tried the "CKS" keytip in Excel 2010, both on a tab and on a button, and it worked. Below is the XML used for the Excel ribbon:

<customUI onLoad="RibbonLoad" 
          xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon>
    <tabs>
      <tab id="tabTest" 
           label="Test" 
           keytip="CKS" >
        <group id="grpTest" 
               label="Group #1" >
          <button id="btn1" 
                  label="Button #1" 
                  size="large" 
                  keytip="CKS" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

这篇关于如何在功能区上设置按键提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆