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
- :
- 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
‎Jan 25, 2008
10:21 AM
check boxes
Hi
I've created a number of checkboxes on a dialog and wish to set some as checked and others unchecked by default. I'd assumed that if I go to the Property manager, search for the property that was prompted for on creation and set the value ( to either 1 (for checked ) and 0 otherwise)this would be reflected when I build and run. In the properties for the checkbox I include the [property name] under value as suggested in the help under CheckBox properties. Whenever I run they all show checked. Any ideas as to what else needs to be done?
Thanks in advance
I've created a number of checkboxes on a dialog and wish to set some as checked and others unchecked by default. I'd assumed that if I go to the Property manager, search for the property that was prompted for on creation and set the value ( to either 1 (for checked ) and 0 otherwise)this would be reflected when I build and run. In the properties for the checkbox I include the [property name] under value as suggested in the help under CheckBox properties. Whenever I run they all show checked. Any ideas as to what else needs to be done?
Thanks in advance
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2008
01:19 PM
Here's a code snippet that will initially select one checkbox, but not the other.
You would put this code inside the while loop of the EzDefineDialog( ) function. Use InstallShield help to find out more about EzDefineDialog( ) if necessary.
You would put this code inside the while loop of the EzDefineDialog( ) function. Use InstallShield help to find out more about EzDefineDialog( ) if necessary.
// This is the case statement for dialog initialization
case DLG_INIT:
// initially check CheckBox1
// "nickname" is just your dialog's nickname set with EzDefineDialog
CtrlSetState("nickname", CheckBox1, BUTTON_CHECKED);
// initially un-check CheckBox2
CtrlSetState("nickname", CheckBox2, BUTTON_UNCHECKED);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
05:28 AM
Thanks for your help
On another forum I found that the corresponding property for the checkbox should be set blank in the Property Manager. I'd previously been trying 1's and 0's as appropriate.
Cheers
On another forum I found that the corresponding property for the checkbox should be set blank in the Property Manager. I'd previously been trying 1's and 0's as appropriate.
Cheers