Anyone know how to make the background of the link transparent?
Thanks.
NSD_CreateLink transparent background?
5 posts
Use SetCtlColors your_hwnd 0xFF0000 transparent
Search this forum, as I can remember these was some kind of bug related to certain labels/links (or linker plug-in?) on WinXP.
Search this forum, as I can remember these was some kind of bug related to certain labels/links (or linker plug-in?) on WinXP.
I have the same problem. Here is my code:
${NSD_CreateLink} 160.61u 105.23u 95.44u 9.23u "oursite.com"
Pop $1
SendMessage $1 ${WM_SETFONT} $Font1 0
SetCtlColors $1 0x000000 transparentI can define the color of the link with SetCtlColors but it seems the "transparent" parameter is being ignored. Can you help me, please?What do you mean it is ignored? Which color are you getting? Windows version? XPStyle on or off?
It does seem to work for me but the link control is a custom control and I'm not sure if it was ever designed to support transparent backgrounds.
It does seem to work for me but the link control is a custom control and I'm not sure if it was ever designed to support transparent backgrounds.
Page Custom nsDcreateBTW, dialog units only supports whole numbers.
Page Instfiles
!include nsDialogs.nsh
#XPStyle On
Function nsDcreate
nsDialogs::Create 1018
Pop $1
${NSD_CreateLink} 16u 15u 100u 30u "oursite.com"
Pop $1
CreateFont $2 "Arial" 22
SendMessage $1 ${WM_SETFONT} $2 0
SetCtlColors $1 0xff5500 transparent
nsDialogs::Show
FunctionEnd
edit nevermind this is a label thou you could make the label a link
this works for me the hide and show part
${NSD_CreateLabel} 15 90 500 15 "blah blah "
Pop $SecondInfoLabel
SetCtlColors $SecondInfoLabel 000000 "transparent"
ShowWindow $SecondInfoLabel ${SW_HIDE}
ShowWindow $SecondInfoLabel ${SW_SHOW}
this works for me the hide and show part
${NSD_CreateLabel} 15 90 500 15 "blah blah "
Pop $SecondInfoLabel
SetCtlColors $SecondInfoLabel 000000 "transparent"
ShowWindow $SecondInfoLabel ${SW_HIDE}
ShowWindow $SecondInfoLabel ${SW_SHOW}