cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
viayraj
Level 3

Control the Edit box on clicking Radio Button during run time.

Hi

I am facing with an issue with the implementation of populating and clearing an Edit box which is triggered by clicking of Radio buttons on run time.

In Detail :

I have a dialog box with two Radio buttons (R1,R2) and a Edit Box : Ed

Value of R1 = 0

Value of R2 = 1


Scenario:


1. Click on R1 -> Ed populates with a text.
2. Click on R2 -> Ed clears the text.

Can any one help me in implementing this behavior ...

Thanks and Regards,
Vinay
Labels (1)
0 Kudos
3 Replies
ch_eng
Level 7

Vinay,

If your project is InstallScript Only or InstallScript MSI, you can add an additional case statement to the dialog code.

example:

...
case ,
bR1Selected = (CtrlGetState( , ) = BUTTON_CHECKED);
if bR1Selected then
CtrlSetText( , , "R1 is selected" );
else
CtrlSetText( , , "" );
endif;
...


HTH
0 Kudos
viayraj
Level 3

Hi ch _eng

i am new to Install shield and a beginner, so could you direct me to the dialog code.

Yes, i am using an install script in a msi file .

i have created my dialog by : Instalation Designer -> User Interface -> Dialogs -> New Dialog

I have query, is it possible for a radio button group to trigger custom actions ??

Thanks and Regards,
Vinay
0 Kudos
ch_eng
Level 7

Vinay,

Here are some official documentation links that will hopefully help. You have to create a new .rul file for the dialog you made in order to run code for it.

http://helpnet.installshield.com/installshield16helplib/mergedProjects/installshield16langref/LangrefEzDefineDialog.htm
http://helpnet.installshield.com/installshield16helplib/mergedProjects/installshield16langref/LangrefEzDefineDialog_example.htm

HTH
0 Kudos