Old 9th May 2004, 18:59   #1
n6mod
Junior Member
 
Join Date: Oct 2003
Posts: 7
List of checkboxes in custom page?

I'm using MUI and would like to put up a list of checkboxes in a custom page, not unlike the components list.

The list will be generated at runtime, so I'm not sure how long it's going to be. I'd like to have a scrolling list with a checkbox next to each entry, and get back the list of entries (in some form) that the user checked.

Ideally, they'd all be checked by default.

Is this something that's possible within InstallOptions? If so, I haven't figured it out.

-Z
n6mod is offline   Reply With Quote
Old 9th May 2004, 19:08   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You can use an extra components page and show/hide sections.
Joost Verburg is offline   Reply With Quote
Old 9th May 2004, 19:33   #3
n6mod
Junior Member
 
Join Date: Oct 2003
Posts: 7
Quote:
Originally posted by Joost Verburg
You can use an extra components page and show/hide sections.
Joost,
Thanks for the quick response. I'm not sure exactly how to make that work, though.

I need to run an external program that returns a list. I basically want one section for each entry in that list.

This also happens as a "post-processing" step.

So, I'd run my normal install process, hide all the "real" sections by setting their text to "", and then create new sections for my list entries?

Can you create sections on the fly like that, or do I need to create a bunch of sections and rename them at runtime?

Thanks again!

-Z
n6mod is offline   Reply With Quote
Old 9th May 2004, 20:18   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You can't create section at run-time.

If the number of checkboxes is limited you can create a bunch of them and rename.

Otherwise you'll have to use the System plug-in with Windows API to create a listview with check boxes.
Joost Verburg is offline   Reply With Quote
Old 10th May 2004, 04:55   #5
n6mod
Junior Member
 
Join Date: Oct 2003
Posts: 7
Quote:
Originally posted by Joost Verburg
If the number of checkboxes is limited you can create a bunch of them and rename.
I think this is what I'll have to do. Using the system plugin makes this a larger project than I'm willing to tackle.

Thanks again,
-Z
n6mod 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