Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialogue
#13
sorry i cant find out how to do this anywhere but im sure you can do it i just think im doing it wrong i want to make a main window dialogue that will run my other dialogues when a button is pressed iv layed it out and thought i knew how to do this but it dont seem to work its probly something simple im getting wrong
Code:
Copy      Help
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "MAIN WINDOW"
;1 Button 0x54030001 0x4 36 114 48 14 "OK"
;2 Button 0x54030000 0x4 140 114 48 14 "CANEL"
;3 Static 0x54000000 0x0 5 1 58 17 ""
;4 Static 0x54000000 0x0 72 1 23 17 ""
;5 Static 0x54000000 0x0 114 1 48 15 ""
;6 Static 0x54000000 0x0 173 1 48 15 ""
;8 Button 0x54032000 0x0 10 18 48 14 "1"
;9 Button 0x54032000 0x0 62 18 48 14 "2"
;10 Button 0x54032000 0x0 114 18 48 14 "3"
;11 Button 0x54032000 0x0 166 18 48 14 "4"
;12 Edit 0x54230844 0x20000 12 34 200 78 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""


str controls = "8 9 10 11"
str MWD MWD1 MWD2 MWD3
if(!ShowDialog("C_MWD" &C_MWD &controls)) ret

if(MWD=1)
,mac "C_CPUD"
if(MWD1=1)
,mac "C_RBWD"
if(MWD2=1)
,mac "C_TSD"
if(MWD3=1)
,mac "C_D1"
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)

sel message
,case WM_LBUTTONUP
,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
im sorry if this is allready posted but everytime i type dialogue in the search box nothing comes up


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)