WIX 安装程序 UI:图标/位图的工具提示 [英] WIX Installer UI: Tooltip for Icon/Bitmap

查看:22
本文介绍了WIX 安装程序 UI:图标/位图的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 WIX 工具集为我的产品构建安装程序.我想在 Edit 旁边放置问号图标以显示工具提示,并解释为什么需要这个值.我试过用图标、位图和文本来做这件事,但是将鼠标悬停在它们上面什么都不做.我的代码是:

I'm using WIX toolset to build an installer for my product. I would like to place the question mark icon next to Edit to show the tooltip with the explanation of why this value is needed. I've tried to do it with Icon, Bitmap, and Text, but hovering mouse on them doing nothing. My code is:

<Control Id="EditToBeExplained" Type="Edit" X="40" Y="65" Width="220" Height="15" Property="IMPORTANT_PROPERTY" Text="{80}" ToolTip="Used for very important stuff."></Control>
<Control Id="ExplanationIcon" IconSize="16" Type="Icon" Text="infoIcon" X="265" Y="65" Height="16" Width="16" ToolTip="Used for very important stuff."/>
<Control Id="ExplanationBmp" Type="Bitmap" Text="infoIconB" Height="16" Width="16" X="285" Y="65" TabSkip="no" ToolTip="Used for very important stuff."></Control>
<Control Id="AgentTempPathEditExplText" Type="Text" Text="{\WixUI_Font_Bigger}?" X="316" Y="65" Height="16" Width="16" ToolTip="Used for very important stuff."/>

我做错了什么?显示编辑时的工具提示,因此工具提示本身正在起作用.我还用 Orca 检查了控制表,帮助列值是正确的.所以.如何强制 msi 显示这些工具提示?或者,如果这是不可能的任何想法,如何向用户显示此解释?

I'm doing something wrong? Tooltip on Edit is displayed, so tooltips itself are working. I also checked the Control table with Orca, Help column values are correct. So. How I can force msi to show these tooltips? Or, if this is impossible Any ideas, how to show this explanation to user?

推荐答案

听起来您已经完成了作业.MSI SDK 说帮助栏是ToolTip|Help,第二部分保留供将来使用.WiX SDK 表示 Help 属性保留供将来使用,以防 MSI 使用它(从不翻译).

It sounds like you've done your homework. MSI SDK says that the help column is ToolTip|Help with the second part reserved for future use. WiX SDK says that the Help attribute is reserved for future use in case MSI ever uses it ( translation never ).

我在 MSI SDK 中搜索了有关工具提示使用的警告,但没有遇到任何警告.如果您看到在 ORCA 中正确填充了该列,那么我会说这只是 MSI 边缘情况不支持的未记录的一种.

I searched the MSI SDK for caveats on tool tip usage but didn't come across any. If you see the column being populated correctly in ORCA then I'd say this is just one of the undocumented unsupported by MSI edge cases.

如果它对您足够重要,您可以使用外部 UI 处理程序.就个人而言,20 年来我不记得曾经使用过此功能.

You could use an external UI handler if it's important enough to you. Personally in 20 years I don't recall ever using this feature.

我刚刚玩了一些游戏,似乎我只能获得工具提示来处理您可以实际与之交互的事情.编辑、路径编辑、目录列表、按钮等.Line、Text 和 BitMap 之类的东西似乎不起作用.这有点道理,但我不知道微软是否在任何地方记录了它.

I just did some playing and it seems I can only get tool tips to work for things you can actually interact with. Edit, PathEdit, DirectoryList, Pushbutton and so on. Things like Line, Text and BitMap don't seem to work. This kinda makes sense but I don't know if MSFT documented it anywhere.

这篇关于WIX 安装程序 UI:图标/位图的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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