Archive: How to increase the text size appearing on MUI Pages


How to increase the text size appearing on MUI Pages
Hi all,

Can any one tell me how can I increase the size of the text appearing on MUI_WELCOMEPAGE. The text I want to display using MUI_WELCOMEPAGE_TEXT seems to be small. Is there any way to increase its font size.

Thanks
Venu


see the documentation :)
there's a define to do that.
search the readme.html for "3LINES"


Hi,

i use :


!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME


and it works perfectly due to answer in this thread ! ^^

I have a custom page with title that is too long to display entirely, can i and how i use the _3LINES statment in this case ?


Page custom CustomPageA CustomPageALeave
...
Function CustomPageA
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "setup.ini"
FunctionEnd


Thank you

Re: How to increase the text size appearing on MUI Pages

Originally posted by Venu
Hi all,

Can any one tell me how can I increase the size of the text appearing on MUI_WELCOMEPAGE. The text I want to display using MUI_WELCOMEPAGE_TEXT seems to be small. Is there any way to increase its font size.

Thanks
Venu
!include mui.nsh
!include WinMessages.nsh
###################################

!define MUI_PAGE_CUSTOMFUNCTION_SHOW wel_show
!insertmacro MUI_PAGE_WELCOME

##################################
Function wel_show
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1202
CreateFont $0 "$(^Font)" "10" ""
SendMessage $1 ${WM_SETFONT} $0 0
FunctionEnd

Only works going forward
This code works when the Welcome page appears. But if you click Back from the next page, it reverts to normal. (BTW I think it's kind of ridiculous that one has to jump through hoops to bold some text on the welcome page - this is such a common requirement.)


seems to work fine for me..


!include mui.nsh
!include WinMessages.nsh

!define MUI_PAGE_CUSTOMFUNCTION_SHOW wel_show
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_WELCOME

!insertmacro MUI_LANGUAGE "English"

OutFile "c:\testsetup.exe"

Function wel_show
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1202
CreateFont $0 "$(^Font)" "10" ""
SendMessage $1 ${WM_SETFONT} $0 0
FunctionEnd

Section
SectionEnd


It's not really that many hoops - you can easily abstract the function to something like ${SetTextSize} <control> <size>. Of course if you just want to define your Welcome page using e.g. Word and define the markup of elements there... perhaps NSIS is not the most appropriate solution.