From 5e5a2ec7af6de0e17ff6641cb17d834eae4a2420 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Mon, 11 Nov 2002 21:14:09 +0000 Subject: [PATCH] Dialog Item 1200 instead of 12000 git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1684 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/InstallOptions/Install Options.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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