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
This commit is contained in:
parent
69bc516677
commit
5e5a2ec7af
1 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ numbers from 1 to NumFields. Each Field section contains the following values:
|
|||
<HR>
|
||||
<A name="ui"><B>Fonts and colors:</B>
|
||||
<P>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:<BR><BR>
|
||||
<PRE> GetDlgItem (output var) (hwnd of the custom dialog) (12000 + field number - 1)</PRE>
|
||||
<PRE> GetDlgItem (output var) (hwnd of the custom dialog) (1200 + field number - 1)</PRE>
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue