Archive: nsDialog: CreateLink Example


nsDialog: CreateLink Example
Hi there,

I search an example for CreateLink in nsDialogs

${NSD_CreateLink} 250 50 300 20 "www.xxxxxxxxx.de"
Pop $Link

leads to a typical blue link in Custom page, even the hand is visible, when mouse is over, but when I click on the link a browser IS NOT opening.

Sure that the passed variable is only text, but where must i pass the real link ?

Unfortunately, there is NO example and NO help in the (good) help document for nsDialogs !

Could you please give me a tipp !

Greetings from Jochen Graulberger, from Black-Forest !


I would like to add something.

I need this links for a Info-Popup box to every input textfield in my custumpage.

Is there another posibility to make some "Infoboxes" for some control elements in Custompages ? You know this sometimes from Windows GUI. There are some exclamationmarks in the GUI e.g. behind a textfield, and when you click them, there is a messagesbox popping up.

I need this, but I can also use a (local) homepage for infos. But then I need the Link-Problem solved.


I have never used the link control in nsDialog, but if its not automatic I guess you have handle onclick like a button and just ExecShell the url


also try..
http://nsis.sourceforge.net/ToolTips_plug-in

you should be able to specify the hwnd that you pop after ${NSD_Create*} for the tooltips plugin. That way you can specify a tooltip for any of the controls directly and the user can just hover over the control.


I know this thread is old , but in case somebody stumbles on it from google ..

You should add an OnClick callback to your link :

${NSD_OnClick} $Link onMyLinkClick

Function onMyLinkClick
Pop $0
ExecShell "open" "http://www.winamp.com"
FunctionEnd