Archive: Install Options documentation


Install Options documentation

Fonts and colors

If you want to use custom fonts or colors on your InstallOptions dialogs, you should use the initDialog and show functions.
Then it shows:

Function FunctionName ;FunctionName defined with Page command

;Display the Install Options dialog

Push $R0
Push $R1
Push $R2

InstallOptions::initDialog /NOUNLOAD $PLUGINSDIR\test.ini
Pop $R0

GetDlgItem $R1 $R0 1200 ;1200 + Field number - 1

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

InstallOptions::show

Pop $R1
Pop $R1
Pop $R0

FunctionEnd
mmm, where are the colors? :)

You should use SetStaticBkColor for that. And like with NSIS it only works for static controls.


yes, but I thought that we can change the label's font color *stead*
of the background... thanks .... that clear a big question since I
start using NSIS and reading the hole doc....