Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Protect from editing a group of controls in a dialog
#1
I am in need to protect from being edited a group of controls in a dialog, in other words to temporarily protect a form from being edited. At present I am doing it using individual EnableWindow(id(...) 0) statements for each one of the fields.

I wonder weather it is possible to define a group and disable the group as a whole. Many thanks in advance for any advice.
#2
from system folder function TO_Enable
simple example when but 3 is clicked disable button 3 and enable controls 4-10
0= disable 
1=enable
Code:
Copy      Help
;messages2
sel wParam
,case 3
,TO_Enable hDlg "3" 0
,TO_Enable hDlg "4-10" 1
or can  do like this
Code:
Copy      Help
,TO_Enable hDlg "3" 0 ;;disable control or controls
,TO_Enable hDlg "4 5 7 9 11 12 18 24 36" 1

F1 TO_Enable for more info
#3
Many thanks for your clear advice. I am sorry for having disturbed you. I should have known that. Best regards.
#4
You're not disturbing me. I am glad to help.


Forum Jump:


Users browsing this thread: 1 Guest(s)