Change Log Window Font: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (SF: Joelito -> Joel.) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{PageAuthor|Afrow UK}} | |||
== Description == | == Description == | ||
Here is a function to change the installer LogWindow font. | Here is a function to change the installer LogWindow font. | ||
Line 5: | Line 7: | ||
<highlight-nsis> | <highlight-nsis> | ||
!include WinMessages.nsh | !include WinMessages.nsh | ||
!define | !define MUI_PAGE_CUSTOMFUNCTION_SHOW LogFont | ||
</highlight-nsis> | </highlight-nsis> | ||
Line 28: | Line 30: | ||
Pop $R0 | Pop $R0 | ||
FunctionEnd | FunctionEnd | ||
</highlight-nsis>Thanks [[ | </highlight-nsis>Thanks [[User:Joel|Joel]] for writing this final code. | ||
-Stu | -Stu | ||
[[Category:User Interface Functions]] |
Latest revision as of 18:52, 28 July 2005
Author: Afrow UK (talk, contrib) |
Description
Here is a function to change the installer LogWindow font.
Usage (Modern UI)
!include WinMessages.nsh !define MUI_PAGE_CUSTOMFUNCTION_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