[nsDialogs]Displaying cursor over button/moving link control
Hello,
Have a few problems with nsDialogs. I hope You can help me.
1. I want to create a Button control with Bitmap. This button must be clickable and display 'Hand' cursor (like in links).
This is how I create button with image on it.
File /oname=$PLUGINSDIRMyBitmap.bmp "c:\\MyBitmap.bmp"
>Var /GLOBAL Button
${NSD_CreateButton} 115u 100u 58 35 ""
Pop $Button
${NSD_AddStyle} $Button "${BS_BITMAP}"
System::Call 'user32::LoadImage(i 0, t "$PLUGINSDIR\MyBitmap.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s'
Pop $1
SendMessage $BUTTON${BM_SETIMAGE} ${IMAGE_BITMAP} $1
${NSD_OnClick} $BUTTON BUTTON_Click
>Function Button_Click
Pop$0
ExecShell "open" "http://web.archive.org/web/*/www.winamp.com"
>FunctionEnd
>
OK, we have clickable button with image. Now I need to display hand cursor, when user moves mouse over the button.How to display that cursor (hand, not default arrow)?
2. I need to dispaly clickable Link control on the nsdialogs created nsis page. The problem is, that this link should be displayed
below the page area, on the left of Buttons. See the attached picture.
I now how to display Link control using nsDialogs, but dont know how to display it in that place.
Here is a code how to display link.
Link
>${NSD_CreateLink} 115u 90u 58 35 "http://web.archive.org/web/*/www.winamp.com"
>Pop $Link
>${NSD_OnClick} $Link Link_Click
>Function Link_Click
Pop$0
ExecShell "open" "http://web.archive.org/web/*/www.winamp.com"
>FunctionEnd
>
The question is. How to move that link to the location at the bottom of the page?Thanks for any help,
regards,
-Pawel