diff --git a/Contrib/InstallOptions/Install Options.html b/Contrib/InstallOptions/Install Options.html index 50c16c54..d8e945c8 100644 --- a/Contrib/InstallOptions/Install Options.html +++ b/Contrib/InstallOptions/Install Options.html @@ -265,7 +265,7 @@ numbers from 1 to NumFields. Each Field section contains the following values:
Fonts and colors:

InstallOptions supports the new UI enhancements in the new NSIS 2. To support them, InstallOptions now has two new functions, initDialog, and show. The first creates the dialog but doesn't show it. It pushes the HWND of the custom dialog to the stack. To get the HWND of any of the controls use:

-

	GetDlgItem (output var) (hwnd of the custom dialog) (12000 + field number - 1)
+
	GetDlgItem (output var) (hwnd of the custom dialog) (1200 + field number - 1)
To finally show the tweaked dialog use the show function. Here is a little example: @@ -275,7 +275,7 @@ Here is a little example: IntCmp $0 0 error ; $0 is now the IO dialog HWND ; use getdlgitem with it and sendmessage - GetDlgItem $1 $0 12000 ; 12000 + field number - 1 + GetDlgItem $1 $0 1200 ; 1200 + field number - 1 ; $1 is now the HWND of the first field CreateFont $2 "Tahoma" 10 700 SendMessage $1 ${WM_SETFONT} $2 0