Archive: List of checkboxes in custom page?


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


You can use an extra components page and show/hide sections.


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

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.


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