Change Log Window Font: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.) |
m (SF: Joelito -> Joel.) |
||
Line 28: | Line 28: | ||
Pop $R0 | Pop $R0 | ||
FunctionEnd | FunctionEnd | ||
</highlight-nsis>Thanks [[user: | </highlight-nsis>Thanks [[user:Joel|Joel]] for writing this final code. | ||
-Stu | -Stu | ||
Page author: [[User:Afrow UK|Afrow UK]] | Page author: [[User:Afrow UK|Afrow UK]] |
Revision as of 16:06, 27 April 2005
Description
Here is a function to change the installer LogWindow font.
Usage (Modern UI)
!include WinMessages.nsh !define MUI_CUSTOMFUNCTION_INSTFILES_SHOW LogFont
Usage (Normal)
!include WinMessages.nsh Page instfiles "" LogFont
The Function
Function LogFont Push $R0 Push $R1 FindWindow $R0 "#32770" "" $HWNDPARENT GetDlgItem $R0 $R0 1016 CreateFont $R1 "Comic Sans Ms" "8" "700" SendMessage $R0 ${WM_SETFONT} $R1 0 Pop $R1 Pop $R0 FunctionEnd
Thanks Joel for writing this final code.
-Stu
Page author: Afrow UK