Skip to content
⌘ NSIS Forum Archive

Change the font size in a custom page

2 posts

mayPol#

Change the font size in a custom page

Hi,
I have a custom page, based on an ini file:
[Field 1]
Type=Label
Text=my text
[Field 2]
Type=Text

How can I change the font size?

Thanks,
May
saschagottfried#
excerpt from NSIS Modern UI help:
Using InstallOptions for custom pages

Function FunctionName ;FunctionName defined with Page command

!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioFile.ini"
Pop $HWND ;HWND of dialog

GetDlgItem $DLGITEM $HWND 1200 ;1200 + Field number - 1

;$DLGITEM contains the HWND of the first field
CreateFont $FONT "Tahoma" 10 700
SendMessage $DLGITEM ${WM_SETFONT} $FONT 0

!insertmacro MUI_INSTALLOPTIONS_SHOW

FunctionEnd

see this thread for information sources:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.