Skip to content
⌘ NSIS Forum Archive

Underline text/link

4 posts

Aaskilde#

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
Afrow UK#
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
T.Slappy#
You can try this:


!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.
Afrow UK#
Originally Posted by T.Slappy View Post
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