Archive: Underline text/link


Underline text/link
Hey,

I wanna underline my show readme text, and the link text i got on the finish page. I have tried text no luck, do i need to make a function or something to get underlining available?


-Aaskilde


The link is formatted by the nsDialogs plugin (MUI2). If you need to underline the link you need to modify the plugin and rebuild.

Stu


You can try this:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.14.2

!include WinMessages.nsh
GetDlgItem $0 $HWNDPARENT 1
CreateFont $1 "Times New Roman" "7" "700" /UNDERLINE
SendMessage $0 ${WM_SETFONT} $1 1

That creates underline font and set it to $0

But this is not working for CheckBoxes (There is some API restriction I suppose), so you need to create manuall a CheckBox and Label next to it.


Originally posted by T.Slappy
You can try this:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.14.2
I very much doubt that will work because on mouse over underlining is added to the text by nsDialogs. This underlining is removed on mouse out.

Edit: Ah nsDialogs doesn't do that so the code may work.

Stu