【问题标题】:How do I change the width of the default nsis buttons (next, cancel, etc..)如何更改默认 nsis 按钮的宽度(下一步、取消等)
【发布时间】:2013-05-22 15:22:52
【问题描述】:

如何更改默认按钮的宽度(下一步、取消等) 我想将按钮的宽度增加 20 像素,听起来很简单,但是..

假设我有这样的事情:

# declare name of installer file
outfile "hello world.exe"

# open section
section

# create a popup box, with an OK button and some text
messageBox MB_OK "Now We are Creating Hello_world.txt at Desktop!"

/* open an output file called "Hello_world.txt", 
on the desktop in write mode. This file does not need to exist 
before script is compiled and run */

fileOpen $0 "$DESKTOP\Hello_world.txt" w

# write the string "hello world!" to the output file
fileWrite $0 "hello world!"

# close the file
fileClose $0
# Show Success message.
messageBox MB_OK "Hello_world.txt has been created successfully at Desktop!"


# end the section
sectionEnd

我该怎么做呢?

【问题讨论】:

    标签: nsis


    【解决方案1】:
    【解决方案2】:

    最好的方法可能是使用Resource Hacker 编辑${NSISDIR}\Contrib\UIs 中的文件之一,然后在您的脚本中使用ChangeUI IDD_INST myui.exe

    另一种选择是在运行时使用系统插件调用 user32::SetWindowPos...

    【讨论】:

    • user32::SetWindowPos 如何帮助实现这一目标?
    • GetDlgItem $0 $hwndparent 2 和 System::Call 'USER32::SetWindowPos(i$0,i0,i0,i0,i100,i30,i0x1a)' 在 .onGuiInit 但使用 ChangeUI 要好得多,因为您可以指定对话框单位的大小...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多