在我的自定义对话框中使用 WixUIBannerBmp

发布于 2024-08-27 09:23:39 字数 205 浏览 4 评论 0原文

在我的安装程序中,我已将 WixUIBannerBmp 设置为指向我自己的自定义 dialog-banner.bmp
现在我添加了一个自定义对话框,我希望具有与其他对话框相同的横幅。

有没有办法引用现有的WixUIBannerBmp?

解决方法是创建一个包含图像的二进制文件并引用它。但似乎不应该需要它。

/升

In my installer I have set WixUIBannerBmp to point to my own custom dialog-banner.bmp.
Now I have added a custom dialog I would like to have the same banner as on the other dialogs.

Is there a way to refer to the existing WixUIBannerBmp?

Workaround would be to create a Binary containing the image and refer to that. But it seems like it shouldn't be needed.

/L

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素染倾城色 2024-09-03 09:23:39

我认为您只需要在对话框定义中使用它:

<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44"
    TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)"/>

当我需要创建自定义对话框时,我只需从 wix 源复制标准对话框之一并根据我的需要进行调整。这些控件都有上面的行,我从来不需要做任何额外的事情来保持我的自定义对话框中的横幅与其余的相同。

I think you just need to use this in your dialog definition:

<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44"
    TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)"/>

When I need to create a custom dialog, I just copy one of the standard dialogs from the wix sources and adapt it to my needs. These controls all have the above line, and I've never had to do anything extra to keep the banners in my custom dialogs the same as for the rest.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文