使用NUI的MUI2时如何更改组件页面上标签上的文本? [英] How can change a text on a label in COMPONENTS PAGE when using MUI2 for NSIS?

查看:41
本文介绍了使用NUI的MUI2时如何更改组件页面上标签上的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在组件页面的某处添加一个链接.我尝试了

I want to add a link somewhere on the components page. I tried the method presented here, while it is indeed working for the WELCOME PAGE, it causes the installer to crash when I'm adding it to the components page.

我要添加的内容是包含带下划线的蓝色字词的文本,单击该文本会在默认浏览器中打开网址.我想将其添加到现有组件页面.

The thing I want to add is a text that contains an underlined blue word which opens a url on the default browser when clicked on. I want to add it to the existing components page.

谢谢

J

推荐答案

我使用nsis论坛的一些帮助解决了该问题,相关链接为:

I solved it using some help from the nsis forum the relevant links are:

添加指向组件页面的链接主要问题是,与欢迎/完成"页面相比,组件"页面不是nsDialog页面.为了动态添加标签,我们必须使用User32 :: CreateWindowEx.我使用资源黑客添加了一个静态标签,以便获得其位置,并将其用作添加的新标签的指南(在链接中对其进行了全部解释...)

The main issue is that in contrast to welcome/finish page, the components page is not a nsDialog page. In order to dynamically add a label we have to use User32::CreateWindowEx. I used the resource hacker to add a static label in order to get its position and use that as a guide for the new label I added (It's all explained in the links...)

这篇关于使用NUI的MUI2时如何更改组件页面上标签上的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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