02-18-2021, 08:09 PM
Hi
I would like to check check boxes with option buttons.
I have two check boxes and two option buttons.
Option button 1 is "Non checked" and option button 2 is "Checked".
I would like to check in the check boxes when option button 2 is "Checked" is on.
I can control the option buttons but not the checkboxes.
Can somebody please help me with this issue?
Thanks
I would like to check check boxes with option buttons.
I have two check boxes and two option buttons.
Option button 1 is "Non checked" and option button 2 is "Checked".
I would like to check in the check boxes when option button 2 is "Checked" is on.
I can control the option buttons but not the checkboxes.
Can somebody please help me with this issue?
Thanks
str dd=
BEGIN DIALOG
0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
3 Button 0x54032000 0x0 64 116 48 14 "Button"
4 Button 0x54012003 0x0 20 12 48 10 "Check"
5 Button 0x54012003 0x0 80 12 48 10 "Check"
6 Button 0x54032009 0x0 20 32 58 10 "Non checked"
7 Button 0x54002009 0x0 20 48 58 10 "Checked"
1 Button 0x54030001 0x4 116 116 48 14 "OK"
2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
END DIALOG
DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""
str controls = "4 5 6 7"
str c4Che c5Che o6Opt o7Opt
int op_c op_n
o6Opt=1
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
case 7
out "Option Checked"
c4Che=1
c5Che=1
case 6
out "Option Non checked"
c4Che=0
c5Che=0
ret 1