SQwerl
28th March 2002 19:29 UTC
Enabled/Disabled Bitmaps
I am not quite understanding why i am getting this error:
EnabledBitmap: "BMP-Selected.bmp
replace_bitmap: error: bitmap error in "BMP-Selected.bmp" -- failing!"
I checked to make sure it was 16 bit color. And it was. The size is also 20x20. Though the size shouldn't be an issue, since nsis resizes it anyway.
The code is:
EnabledBitmap BMP-Selected.bmp
DisabledBitmap BMP-UnSelected.bmp
Is there anywhere specifc that those two lines should be at? I.E. The first few lines of code in the script?
TIA
maragato
28th March 2002 20:08 UTC
256 COLOR!
I am Brazilian, my english is bad! Please, forgive me!
The bitmap must be in 256 color!
The parameter must be delimited by " ("mybmp.bmp")
Write the full file's path! ("c:\bmps\bmp1.bmp")
Example:
EnabledBitmap "c:\windows\desktop\bmps\BMP-Selected.bmp"
DisabledBitmap "c:\windows\desktop\bmps\BMP-UnSelected.bmp"
SQwerl
28th March 2002 20:21 UTC
Thanks for trying to help, but no, they aren't supposed to be 256 bit colors. :)
From the Documentation:
Sets the enabled state of the listbox for the component page. It MUST be a 16 color bitmap (it can be any size, but 20x20 is preferred -- all others will be resized down... poorly).
And that was exactly my problem! The graphic editor that i was using, wasn't reporting how many bits it was. I discovered it by using ACDSee, and converted it from 256 bit colors, to 16. Now it works. :)
maragato
28th March 2002 20:31 UTC
nsisconf.nsi
The best place for this commands is your <nsis_directory>\nsisconf.nsi
See the documentation mankensis.htm and find "nsisconf.nsi" (CTRL + F)
pjw62
29th March 2002 19:40 UTC
a 16 colour bitmap means exactly that--not a 16 bit bitmap (that is 2^16 colours).