This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Dialog with a list of check boxes
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 24, 2015
06:30 AM
Dialog with a list of check boxes
Hi,
I want to create a dialog that displays a list of check boxes (the list is dynamic) and the user can select more than one option in this list.
How can I do it? it should be something very similar to SdAskOptionsList (NONEXCLUSIVE) dialog.
How can I see the code of SdAskOptionsList dialog? when I edit it, I can't see a control for the list of check boxes.
Thanks,
Ayelet.
I want to create a dialog that displays a list of check boxes (the list is dynamic) and the user can select more than one option in this list.
How can I do it? it should be something very similar to SdAskOptionsList (NONEXCLUSIVE) dialog.
How can I see the code of SdAskOptionsList dialog? when I edit it, I can't see a control for the list of check boxes.
Thanks,
Ayelet.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 24, 2015
02:29 PM
I am going to assume that you have a pure InstallScript project because of your reference to the SdAskOption item.
I have not done this myself, but I am assuming that you know how to obtain the data to insert into the list box. Just add this data to an InstallShield LIST type and add the listID.
The code piece you need for InstallScript is the code to add the item to the list control. According to the help, CtrlSetList should allow you to add the contents of a list to a dialog.
CtrlSetList(szDialogName, nControlID, listID);
If you are instead working with MSI rather than InstallScript, then check out the following link for an example to modify the MSI database at runtime.
http://forum.installsite.net/index.php?showtopic=4941
Hopefully this helps.
I have not done this myself, but I am assuming that you know how to obtain the data to insert into the list box. Just add this data to an InstallShield LIST type and add the listID.
The code piece you need for InstallScript is the code to add the item to the list control. According to the help, CtrlSetList should allow you to add the contents of a list to a dialog.
CtrlSetList(szDialogName, nControlID, listID);
If you are instead working with MSI rather than InstallScript, then check out the following link for an example to modify the MSI database at runtime.
http://forum.installsite.net/index.php?showtopic=4941
Hopefully this helps.