Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deselecting options in a dialog
#1
Is there a way to deselect all options in a dialog at the same time?

Function Dialog9
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3 4 5 6 7 8"
str o3Opt o4Opt o5Opt o6Opt o7Opt o8Opt
if(!ShowDialog("Dialog9" &Dialog9 &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54032009 0x0 8 10 48 12 "Option first"
;4 Button 0x54002009 0x0 8 28 48 13 "Option next"
;5 Button 0x54032009 0x0 72 10 48 12 "Option first"
;6 Button 0x54002009 0x0 72 28 48 13 "Option next"
;7 Button 0x54032009 0x0 132 10 48 12 "Option first"
;8 Button 0x54002009 0x0 132 28 48 13 "Option next"
;END DIALOG
;DIALOG EDITOR: "" 0x2030001 "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Or do I have to deselect each one?

Macro
Code:
Copy      Help
but- id(3 win("Dialog" "#32770"))
but- id(4 win("Dialog" "#32770"))
but- id(5 win("Dialog" "#32770"))
but- id(6 win("Dialog" "#32770"))
but- id(7 win("Dialog" "#32770"))
but- id(8 win("Dialog" "#32770"))


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)