|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
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. ++ |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
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.
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
Oops.
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
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
Ok, if anyone asks, I was bored!
![]() 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! ![]() (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.) |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
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 ^^ |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
D'oh it's works great for checkbox, but not at all for radiobuttons T_T
any idea ? |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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! |
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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?) |
|
|
|
|
|
#10 |
|
Major Dude
|
Yep, IOEx has it...
|
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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.
|
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
thanks for all your work on it ^^.
++ |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
any news ?
|
|
|
|
|
|
#14 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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? |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jul 2004
Posts: 30
|
here's the buttons i plan to use for radiobutton on my blakc+green installer:
++ |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|