Add tooltip to Excel Add-in Custom Ribbon UI XML

为君一笑 提交于 2019-12-19 02:09:13

问题


I am creating an Excel Add-In that has a custom Ribbon UI. I would like to add a tooltip for my buttons. What XML attributes can I use to set this?

<button id="insertStuff" label="Insert Stuff" size="large" onAction="InsertStuff_EventHandler" imageMso="AddAccount" />

回答1:


You can use "screentip" and "supertip":

<button id="insertStuff" screentip="Tooltip title" supertip="Long description" ...

BTW, you should have autocomplete normally when you edit the ribbon XML in VS. If you don't make sure you have Ribbon schema file available.



来源:https://stackoverflow.com/questions/26681342/add-tooltip-to-excel-add-in-custom-ribbon-ui-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!