set the font of a custom label added on a custom dialog page in nsis installer

时光毁灭记忆、已成空白 提交于 2020-01-02 17:48:49

问题


how to set the font of a label added on a custom added page in nsis installer

To create the label i have used this :

    nsDialogs::Create 1018

var Label

${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:"
Pop $Label

回答1:


!include nsDialogs.nsh
var Label
page custom pre
function pre
nsDialogs::Create 1018

${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:"
Pop $Label
CreateFont $0 "Arial" 18
SendMessage $Label ${WM_SETFONT} $0 1

nsDialogs::Show
functionend


来源:https://stackoverflow.com/questions/5894473/set-the-font-of-a-custom-label-added-on-a-custom-dialog-page-in-nsis-installer

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