- NSIS Discussion
- checkbox desing in custom page
Archive: checkbox desing in custom page
Satsuki
1st August 2005 19:36 UTC
checkbox desing in custom page
hello,
i use a custom bitmap file for the sections checkbox (green and black).
is there any way i can use a custom bitmap file for custom page checkbox, because if i cant it's ruining all the installer theme.
thanks.
++
JasonFriday13
2nd August 2005 04:18 UTC
Yes you can change the checkbox bitmap. The bitmaps are located at $NSISDIR\contrib\graphics\checkbox or similar. Copy the default and make the new checkbox from there. Also check the help files included with nsis to find out how to change the bitmap on the components page.
Comperio
2nd August 2005 04:45 UTC
Correct me if I'm wrong, but I was under the impression that the custom checkboxes were only for the componets page.
Satsuki however is asking about a custom page check. I'm not sure if that is possible.
JasonFriday13
2nd August 2005 05:05 UTC
Oops. :rolleyes: I thought it was the components page checks he was talking about. I agree. I don't think it is possible to change the custom page checkboxes
Comperio
2nd August 2005 06:10 UTC
Ok, if anyone asks, I was bored!
:igor:
I created something that might work. (I stress might here becuase I'm not sure what I've done is 'by the book' or not, so I'm not guaranteeing this will work all the time, or even at all with certain configurations.)
My test box was Win2k in case anyone's curious..
Take a look at the attached example. I borrowed some code from Vytautas' MUI mod and from this forum.
The idea is that a check box control is masked by a bitmap control (since bitmaps don't support the NOTIFY flag). 2 bmps are used, one for check and one for uncheck. (In my lame example, I just used 'Red' and 'green' bitmaps, but I'm sure someone else could be a bit more creative.) When the user clicks the picture, the notify for the checkbox is received which bitmap. The end user just sees the bitmap changing.
If this hairbrain idea works, I can publish it on the Wiki. If not, well, I can at least say I tried! :p
(There are no docs other than what's here. Just extract the contents of the zip to a single folder and compile and you should be OK.)
Satsuki
2nd August 2005 15:03 UTC
I've gone to the same conclusion as you but you posted your sample before i tested it myself.
since i have about 30 checkbox and 15 radiobutton in my customs page, i'm going to do a macro for that...
but if anyone as a solution to use the MUI button in custompage, i think it would be more accurate and a lot easyer ^^.
thanks for you answer ^^
Satsuki
2nd August 2005 18:19 UTC
D'oh it's works great for checkbox, but not at all for radiobuttons T_T
any idea ?
Comperio
2nd August 2005 18:44 UTC
I'll play some with it the next few days. (I won't have much time until this weekend.)
I'm glad the checkboxes worked, though!
Comperio
3rd August 2005 06:14 UTC
Alas, I have to admit defeat. (and the more I think about it, the more I feel that my lame example is not something that can every really be guaranteed to work.)
I've look at other skinning methods and I have to say that the SkinCrafter plugin (http://nsis.sourceforge.net/wiki/NSI...Crafter_Plugin) is your best bet for checkboxes and radio buttons. (Visit the website, www.skincrafter.com, to get a tool for building your own skins.)
EDIT:
If InstallOptions could be changed to include a notify flag for the image field, then I could probably come up with a a good reliable plugin. (You might offer this as a suggestion at NSIS's sourceforge site.)
You might also check out InstallOptionsEx thread to see if that option is available there. (I glanced at the docs for it, but couldn't find anything.)
(deguix, if you're reading this, perhaps you can respond?)
deguix
3rd August 2005 09:37 UTC
Yep, IOEx has it... :rolleyes:
Comperio
3rd August 2005 18:08 UTC
I must have missed it in the docs (or I have the wrong version). I'll download the latest today and see what I can do.
Satsuki
3rd August 2005 18:14 UTC
thanks for all your work on it ^^.
++
Satsuki
6th August 2005 07:11 UTC
any news ?
Comperio
8th August 2005 23:14 UTC
Sorry, my other job has had me so busy I've not had a chance to devote much time yet.
I'll see what comes over the next week or so. This is still defintely something I want to tackle.
BTW:
Does anyone have any sample graphics for a radio button?
Satsuki
9th August 2005 06:01 UTC
here's the buttons i plan to use for radiobutton on my blakc+green installer:
http://yatoshi.com/radon.bmp
http://yatoshi.com/radoff.bmp
++