07-26-2010, 09:00 AM
I tried
Function test1
Function test2
but doesn't work.
How can run (test2 0) and then (test2 1)?
Function test1
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str qmg3x
if(!ShowDialog("test1" &test1 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 QM_Grid 0x56031041 0x0 4 6 204 68 "0x0,0,0,0,0x0[]A,,,[]B,,,"
;4 Button 0x54032000 0x0 16 88 48 14 "Init"
;END DIALOG
;DIALOG EDITOR: "" 0x2030207 "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,DlgGrid- g.Init(hDlg 3)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,test2 0
,test2 1
,case IDOK
,case IDCANCEL
ret 1
Function test2
function row
int hwnd=id(3 win("Dialog" "#32770"))
DlgGrid g.Init(hwnd)
int i
for i 0 30
,_s=i
,g.CellSet(row 0 _s)
,1
but doesn't work.
How can run (test2 0) and then (test2 1)?