Page 1 of 1

How to control a dialogs radiobuttons checked property from script

Posted: Fri Jan 20, 2017 3:57 pm
by wxperson99
Hi.

I have a dialog which has 2 radiobuttons .... names of A and B for example

Within my script, before calling the dialog, I have information which determines whether the "checked" property should be set on field A or on field B. i.e. I want to force a different default to be checked based on information they provided earlier.

How can I make that happen before calling the dialog.

Thanks,

George

Re: How to control a dialogs radiobuttons checked property from script

Posted: Mon Jan 23, 2017 12:50 pm
by FrancescoT
Dear Wxperson99,

please have a look at the following link.
https://www.installaware.com/forums/viewtopic.php?f=2&t=6072

In addition for a sample, you may also have a look at how Radio Buttons are controlled with some of the standard setup dialogs
...eg., "SetupType", "StartMenu" or "Maintenance" dialogs.

Hope this helps you.

Regards

Re: How to control a dialogs radiobuttons checked property from script

Posted: Tue Jan 24, 2017 8:15 pm
by wxperson99
How do I set A's associated checked variable to True... assuming the dialog name is setuptype?

In my case A's name is "Complete"... so is there some kind of variable called setuptype.Complete.checked that can be set to true?

i.e. dialogname.object.property ?

Thanks,

George

Re: How to control a dialogs radiobuttons checked property from script

Posted: Wed Jan 25, 2017 8:24 am
by wxperson99
I now see the object rules section. Let me play with that to see if I can do what I want.

Re: How to control a dialogs radiobuttons checked property from script

Posted: Wed Jan 25, 2017 2:32 pm
by FrancescoT
Are in fact the "Dialog Object Behavior" that has to be used.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10860

Regards