This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to Disable edit control contionally?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2010
03:51 AM
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!
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!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2010
05:55 AM
Do the following which your radio button is clicked
hwndDlg = CmdGetHwndDlg ( szDialogName );
hEditBox = GetDlgItem( hwndDlg,edit_box ctrl id);
EnableWindow( hEditBox , Disable);
hwndDlg = CmdGetHwndDlg ( szDialogName );
hEditBox = GetDlgItem( hwndDlg,edit_box ctrl id);
EnableWindow( hEditBox , Disable);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2010
08:55 PM
Thanks very much!
It wroks!:)
It wroks!:)