Posts: 1,058
Threads: 367
Joined: Oct 2007
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.
Posts: 1,338
Threads: 61
Joined: Jul 2006
07-14-2018, 02:37 AM
(This post was last modified: 07-14-2018, 02:50 AM by Kevin.)
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
;messages2
sel wParam
,case 3
,TO_Enable hDlg "3" 0
,TO_Enable hDlg "4-10" 1
or can do like this
,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
Posts: 1,058
Threads: 367
Joined: Oct 2007
Many thanks for your clear advice. I am sorry for having disturbed you. I should have known that. Best regards.
Posts: 1,338
Threads: 61
Joined: Jul 2006
You're not disturbing me. I am glad to help.