Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialogue
#1
hi,
Is there a way to make a dialogue where u can only check 1 of the check buttons. Then press ok and it will run a diff function for each you checked and pressed ok. I dont want it to be able 2 check like 2 out of the 4 check buttons. I only want them to be able to check 1, sorry iv not done any dialogue before and trying to understand it heres what i have and i dnt think im anywhere near understanding how 2 do this right its in smart dialogue if that helps

Code:
Copy      Help
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x190 0 0 90 95 "Form"
;1 Button 0x54030001 0x4 0 82 48 13 "OK"
;3 Button 0x54012003 0x0 0 3 98 15 "1"
;4 Button 0x54012003 0x0 0 20 108 23 "2"
;5 Button 0x54012003 0x0 0 46 108 15 "3"
;6 Button 0x54012003 0x0 0 64 108 15 "4"
;10 Static 0x54000010 0x20000 0 44 95 2 ""
;9 Static 0x54000010 0x20000 2 18 95 1 ""
;8 Static 0x54000010 0x20000 0 62 95 1 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""

str controls = "3 4 5 6"
str c3Che c4Che c5Che c6Che
if(!ShowDialog("C_CPUD" &C_CPUD &controls)) ret
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)

sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)