How to control a dialogs radiobuttons checked property from script

Got a problem you cannot solve? Try here.
wxperson99
Posts: 62
Joined: Sun Jul 13, 2014 3:28 pm

How to control a dialogs radiobuttons checked property from script

Postby wxperson99 » Fri Jan 20, 2017 3:57 pm

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

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Mon Jan 23, 2017 12:50 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

wxperson99
Posts: 62
Joined: Sun Jul 13, 2014 3:28 pm

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

Postby wxperson99 » Tue Jan 24, 2017 8:15 pm

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

wxperson99
Posts: 62
Joined: Sun Jul 13, 2014 3:28 pm

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

Postby wxperson99 » Wed Jan 25, 2017 8:24 am

I now see the object rules section. Let me play with that to see if I can do what I want.

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Wed Jan 25, 2017 2:32 pm

Are in fact the "Dialog Object Behavior" that has to be used.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10860

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 51 guests