Old 1st August 2005, 18:36   #1
Satsuki
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.

++
Satsuki is offline   Reply With Quote
Old 2nd August 2005, 03:18   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
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.
JasonFriday13 is offline   Reply With Quote
Old 2nd August 2005, 03:45   #3
Comperio
Major Dude
 
Comperio's Avatar
 
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.
Comperio is offline   Reply With Quote
Old 2nd August 2005, 04:05   #4
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
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
JasonFriday13 is offline   Reply With Quote
Old 2nd August 2005, 05:10   #5
Comperio
Major Dude
 
Comperio's Avatar
 
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.)
Attached Files
File Type: zip test checkbox.zip (1.3 KB, 198 views)
Comperio is offline   Reply With Quote
Old 2nd August 2005, 14:03   #6
Satsuki
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 ^^
Satsuki is offline   Reply With Quote
Old 2nd August 2005, 17:19   #7
Satsuki
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 ?
Satsuki is offline   Reply With Quote
Old 2nd August 2005, 17:44   #8
Comperio
Major Dude
 
Comperio's Avatar
 
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!
Comperio is offline   Reply With Quote
Old 3rd August 2005, 05:14   #9
Comperio
Major Dude
 
Comperio's Avatar
 
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?)
Comperio is offline   Reply With Quote
Old 3rd August 2005, 08:37   #10
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Yep, IOEx has it...

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 3rd August 2005, 17:08   #11
Comperio
Major Dude
 
Comperio's Avatar
 
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.
Comperio is offline   Reply With Quote
Old 3rd August 2005, 17:14   #12
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
thanks for all your work on it ^^.

++
Satsuki is offline   Reply With Quote
Old 6th August 2005, 06:11   #13
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
any news ?
Satsuki is offline   Reply With Quote
Old 8th August 2005, 22:14   #14
Comperio
Major Dude
 
Comperio's Avatar
 
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?
Comperio is offline   Reply With Quote
Old 9th August 2005, 05:01   #15
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
here's the buttons i plan to use for radiobutton on my blakc+green installer:




++
Satsuki is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump