|
|
|
|
#1 |
|
Junior Member
|
Hey,
I've created a custom page with an image in the background. Of course, the text-labels have gray background. I've changed them the normal way (SetCtlColors). It's possible to set every color, but transparency is always set to gray. I think, it sets the color of the dialog behind the image, not the image itself. Is there a work-around? I've searched already, but didn't find a working solution ![]() Best regards, Tobias |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You may need to refresh the control. Easiest way to do this is to hide the control and then show it again using:
ShowWindow $R0 ${SW_HIDE} ShowWindow $R0 ${SW_SHOW} -Stu |
|
|
|
|
|
#3 |
|
Junior Member
|
thanks ... it works!
|
|
|
|
|
|
#4 |
|
Junior Member
|
code: it only changes "item 1200" ... and it doesn't work for buttons :-( Last edited by TobWen; 4th June 2006 at 12:53. |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You should change controls in the parent window (i.e. Next button, Back button etc) in .onGUIInit.
If you're using Modern UI then you'd need to !define MUI_CUSTOMFUNCTION_GUIINIT onGUIInit -Stu |
|
|
|
|
|
#6 |
|
Junior Member
|
I mean checkboxes and their labels. I'm using classic UI.
But why is just the first label changed (1200) and not the second (1208) ? |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Are you using Windows XP and XPStyle on?
-Stu |
|
|
|
|
|
#8 |
|
Junior Member
|
WinXP and XPStyle OFF :-)
|
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Please attach the entire code in question.
-Stu |
|
|
|
|
|
#10 |
|
Junior Member
|
here it is ...
|
|
|
|
|
|
#11 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Hmm strange. Transparent doesn't seem to be working for it at all. And by the way, the control ID is 1210 for the check box (it's Field 8 - 1 + 3)... +3 because each DirRequest control has two controls; the text box and the command button.
Interestingly, if I use transparent for its background and use XPStyle on, the background turns black! Perhaps you should contact kichik about this (or wait for him to reply). -Stu |
|
|
|
|
|
#12 |
|
Junior Member
|
LoL ... I just realized the crap I wrote in topic :-))
"label transparents" ... OMG :-) |
|
|
|
|
|
#13 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#14 |
|
Junior Member
|
It doesn't even work with labels :-(
|
|
|
|
|
|
#15 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
At least for the labels, you're using the wrong dialog item id. You should read the HWND value from the INI after calling initDialog. It's much simpler than calculating the correct id. To get the HWND of the browse button, read HWND2. Use:
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|