Archive: Background color of controls


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?


SetStaticBkColor only works for static controls.
We are currently working on a solution for this problem. The solution is transparent check marks.


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.


Well, they don't, but you can define a certain color as trnasparent.


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.


I can define the transparent color in NSIS or in an image editor?


That has not been decided yet :)


I think we can use magenta as transparency color (like Windows does).


I think is better set the transparent color as a parameter in the function. Or maybe put an alpha channel in the bitmap.


Done. Magenta is now transparent. You can find the new version at the CVS, or tomorrow's nightly snapshot.


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?


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.


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

i'm wondering how elegant this solution is.. not that i'm a friend of that color, but still :D


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?


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...


Sweeeeet. Thanks.