Change Log Window Font: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|Afrow UK}}
|<small>Author: [[{{ns:2}}:Afrow UK|Afrow UK]] ([[{{ns:3}}:Afrow UK|talk]], [[{{ns:-1}}:Contributions/Afrow UK|contrib]])</small>
 
|}
<br style="clear:both;">
== Description ==
== Description ==
Here is a function to change the installer LogWindow font.
Here is a function to change the installer LogWindow font.
Line 36: Line 34:
-Stu
-Stu


[[{{ns:14}}:User Interface Functions]]
[[Category:User Interface Functions]]

Revision as of 11:53, 24 June 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_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