简体   繁体   中英

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

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
!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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM