Jump to content


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.
Photo

Enable/Disable control at runtime


1 reply to this topic

bhagelin

bhagelin
  • Members
  • 22 posts

Posted 01 February 2006 - 18:53

Is there a way I can enable/disable dialog controls during runtime with InstallScript? I have an edit box I want to enable/disable based on a condition.

Thanks,

B

bhagelin

bhagelin
  • Members
  • 22 posts

Posted 03 February 2006 - 21:57

Solution (place in case DLG_INIT: of dialog's code):

CODE
hwndDlg = CmdGetHwndDlg (DLG_SQLSELECTLOGIN);
_WinSubEnableControl (hwndDlg, CONTROL_NAME, 0);        
       


0 - disables control
1 - enables control