Hello all,
I am working with InstallShield Developer 7.03 and I am trying to build a custom user interface with 3 radio buttons within.
I should mention that a was building a Standard MSI installation.
I placed a radio button group into the dialog with and than a created a new property named "TESTPROP" with a value
of "1". After editing the property column in then control table for the new created radion button group, I placed tree radio
buttons into the radio button group. After all the radiobutton table contained three new entries all named with "TESTPROP".
So far so good. But how can I set the radio button within InstallScript? The documentation tells me to use
CtrlSetState ( szDialogName, nControlID, nState ).
But what is the ControlID of an individual radio button?
Isn't it possible to set for example radiobutton2 as checked?
My code:
svProp = "OTHERPROP";
GetProp(svProp,svOtherProp); // User defined function
if( svOtherProp = "1") then
CtrlSetState(szDialogName,RES_RBUTTON1,BUTTON_CHECKED);
elseif( svOtherProp = "2") then
CtrlSetState(szDialogName,RES_RBUTTON2,BUTTON_CHECKED);
else
CtrlSetState(szDialogName,RES_RBUTTON3,BUTTON_CHECKED);
endif;
Thanks in advance
Alfred
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
RadioButton + InstallScript
Started by
AHMH
, Feb 05 2003 18:59
2 replies to this topic
Posted 06 February 2003 - 10:30
From your description I guess you are using the "Basic MSI" project type, not the "Standard" (which is displaying the user interface using InstallScript). Is this correct?
In this case you can preselect a radio button by setting your TESTPROP to the value of that button.
In this case you can preselect a radio button by setting your TESTPROP to the value of that button.
Stefan Krüger
InstallSite.org twitter facebook
Posted 06 February 2003 - 16:16
No, I'm using definitive a Standard project.
The problem is that I want to get the checked radiobutton at runtime.
My dialog is a standard *.isd dialog.
Should I use a resource dll for my dialog?
The problem is that I want to get the checked radiobutton at runtime.
My dialog is a standard *.isd dialog.
Should I use a resource dll for my dialog?