Old 24th January 2011, 09:29   #1
Aaskilde
Junior Member
 
Join Date: Jan 2011
Posts: 35
Question 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
Aaskilde is offline   Reply With Quote
Old 24th January 2011, 12:53   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,344
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
Afrow UK is offline   Reply With Quote
Old 26th January 2011, 07:10   #3
T.Slappy
Senior Member
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 432
Send a message via ICQ to T.Slappy
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.

Create cool looking Graphical Installers in NSIS: www.graphical-installer.com -see below
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned-softworks.com
Develop NSIS projects directly in Visual Studio 2005-2013: www.visual-installer.com
T.Slappy is offline   Reply With Quote
Old 26th January 2011, 10:40   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,344
Quote:
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump