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

How to Disable edit control contionally?

I have placed two radio and an edit control in a dialog,and i want to implement the following effects:
If i clicked radio A ,the edit control is editable.
If i clicked radio B , the edit conrol is uneditable.
How can i manage to do this?
My installation is an InstallScript one.
Thanks!
Labels (1)
0 Kudos
(2) Replies
J_anitha
Level 8

Do the following which your radio button is clicked

hwndDlg = CmdGetHwndDlg ( szDialogName );
hEditBox = GetDlgItem( hwndDlg,edit_box ctrl id);
EnableWindow( hEditBox , Disable);
0 Kudos
PysnLiu
Level 3

Thanks very much!
It wroks!:)
0 Kudos