- NSIS Discussion
- Background color of controls
Archive: Background color of controls
SprinklerHead
17th September 2002 21:16 UTC
Background color of controls
Hi all. Got a problem here...
How do you change the background color of the drop-down list, treeview control and the directory field? This color is grey on my system. It needs to be white because the icons I use in the treeview control are white (see attached gif file). I know about the SetStaticBkColor command, and to use it you need to call GetDlgItem. But how do you figure out the item_id to pass?
kichik
17th September 2002 21:26 UTC
SetStaticBkColor only works for static controls.
We are currently working on a solution for this problem. The solution is transparent check marks.
SprinklerHead
17th September 2002 22:42 UTC
Thanks for the quick reply.
Transparent checkmarks would be great, but I didn't think it was possible for a bitmap to have a transparent color. CheckBitmap looks like it requires a bitmap, so I can't use a format that supports transparency - or can I?
Thanks again.
kichik
17th September 2002 22:45 UTC
Well, they don't, but you can define a certain color as trnasparent.
SprinklerHead
17th September 2002 22:48 UTC
I think I read your post wrong. You are in the process of implementing transparent checkmarks. It is not implemented yet. Aha. Oh well, thanks again.
SprinklerHead
17th September 2002 22:50 UTC
I can define the transparent color in NSIS or in an image editor?
kichik
17th September 2002 22:55 UTC
That has not been decided yet :)
Joost Verburg
18th September 2002 15:23 UTC
I think we can use magenta as transparency color (like Windows does).
MoNKi
18th September 2002 20:05 UTC
I think is better set the transparent color as a parameter in the function. Or maybe put an alpha channel in the bitmap.
kichik
20th September 2002 18:17 UTC
Done. Magenta is now transparent. You can find the new version at the CVS, or tomorrow's nightly snapshot.
SprinklerHead
20th September 2002 19:48 UTC
So let me get this straight. I need to download version 1.69 of makensis.exe from CVS, overwrite my current version, then change the checkmark backgrounds to magenta. Is that right?
kichik
20th September 2002 19:50 UTC
Downdload all of the new files not just makensis.exe. The new ChangeUI for examples depends on new UIs in Contrib\UIs folder. Justin has also updated all of the current bitmaps with the magenta background color so you can use them.
rainwater
20th September 2002 20:45 UTC
Originally posted by SprinklerHead
So let me get this straight. I need to download version 1.69 of makensis.exe from CVS, overwrite my current version, then change the checkmark backgrounds to magenta. Is that right?
The latest nightly has these changes:
http://nsis.sourceforge.net/nightly/nsis.zip
Yathosho
20th September 2002 23:04 UTC
i'm wondering how elegant this solution is.. not that i'm a friend of that color, but still :D
SprinklerHead
23rd September 2002 15:08 UTC
I downloaded the "last nightly", unzipped it and replaced all of the contents of my NSIS folder with the new stuff. Now I can't compile my script. Here is the error message...
Processing script file: "C:\Program Files\NSIS\makensis.exe"
Invalid command: MZ
Error in script "C:\Program Files\NSIS\makensis.exe" on line 1 -- aborting creation process
What am I doing wrong?
kichik
23rd September 2002 15:15 UTC
Download it with the installer. Go to http://nsis.sf.net and download the latest snapshot with the installer. This will save you the time to read messages in the forum, SourceForge, bug reports, and some more messages in the forum...
SprinklerHead
23rd September 2002 15:37 UTC
Sweeeeet. Thanks.