Archive: underline MUI_FINISHPAGE_LINK ?


underline MUI_FINISHPAGE_LINK ?
  Hi,

i got another lil' question: is it possible to underline the MUI_FINISHPAGE_LINK? Maybe with installoptions?

I would read by myself, but i lost a nice documentation on installoptions and i can't find it in the web, again. It was not the "io2-tutorial.zip" and not the "Readme.html" in "C:\Programme\NSIS\Contrib\Modern UI". It was another detailed doc only about installoptions. If you know, what i mean: Can yout tell me where to find it?

Maybe a "documentation-collection"-area in the nsis-wiki would be helpfull.

Thx,

Martin


Good question now that I've read it - pondering underlining it in my installer as well. However, I've never been fond of underlined links myself :)

Regardless, here's the code:


define MUI_PAGE_CUSTOMFUNCTION_SHOW FinishShow

>!insertmacro MUI_PAGE_FINISH

>Function FinishShow
># $MUI_HWND contains the window handle for MUI's welcome/finish pages
# 0x4b3 is the link control
GetDlgItem $0 $MUI_HWND 0x4b3
># ^Font and ^FontSize are LangString vars containing
# the installer's set font and font size
# Create a new font based on it that is underlined
# ( Font 'weight' of 400 = regular )
CreateFont $1 "$(^Font)" "$(^FontSize)" "400" /UNDERLINE
># and set the font
SendMessage $0 ${WM_SETFONT} $1 1
FunctionEnd
>

Pretty cool. Thanks.