abletech
Posts: 5
Joined: Wed Mar 14, 2012 9:22 am

Checkbox - Checked and Unchecked

Hi,
I have a dialog with these controls inside:
a checkbox
a label
a textbox.

Now, I do so that when the checkbox is 'checked', the label and textbox to be visible and when the checkbox is 'unchecked' the label and the textbox is hidden.

I appreciated the 'Value' of the checkbox with my Properties and Events Published I had two DoAction:
- If my Properties is 1, then put 0
- If my Properties is 0, then add 1
I think in this way to manage the factor 'checked' and 'unchecked'.

In the Control Condition of the label and the textbox I specified that:
- If my Properties is 0 then hide the label and textbox
- If my monster Properties is 0 then label and textbox

How can I do to solve my problem?

Regards
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Checkbox - Checked and Unchecked

Hi,

If you want to achieve this you should proceed as follows:

Select the "Check Box" control from your dialog. In the "Properties" pane set the following attributes for this control:

Property Name : CHECKBOX
Value : checked


Select the "Static Text" control. Now add two control conditions, from "Control Conditions" tab and edit them as follows:

CONDITION : CHECKBOX = ""
ACTION : Hide

CONDITION : CHECKBOX = "checked"
ACTION : Show


Select the "Edit Box" control and repeat the steps from "Static Text" control.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
abletech
Posts: 5
Joined: Wed Mar 14, 2012 9:22 am

Re: Checkbox - Checked and Unchecked

Now I ran into another problem.
I have a checkbox that when checked makes a textbox enable = true, if not checked makes the textbox enable = false.
Now, in the Published Events checkbox I did two doAction:
- If the properties of the checkbox = "" then I values ​​a variable with 0
- If the properties of the checkbox = 0, then I values ​​a variable with 1
The textbox in the Control Condition I say:
- If the properties of the checkbox = "" or my variable = "0" then DISABLE
- If the properties of the checkbox = 0 or my variable = "1" then ENABLE.

When I create the msi and arrival in the dialog, I do not check checkato and disable the textbox.
Pressing the checkbox is enabled textbox.
Repressing the checkbox, however, the textbox is no longer disabled.
It is disabled if I press another checkbox, or if I choose a value from a combo or if I click on Next (I even put doAction Next).

How can I solve the problem,

Reguards.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Checkbox - Checked and Unchecked

Can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can see your settings?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”