10-12-2005, 04:09 PM
SetTimer is not a wait function. Maybe this is what you need:
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str a
if(!ShowDialog("v10_2" &v10_2)) ret
;BEGIN DIALOG
;0 "" 0x10C80A44 0x100 0 0 109 17 "10+2"
;3 Button 0x54032001 0x4 2 2 48 14 "Start 10+2"
;2 Button 0x54030000 0x4 56 2 48 14 "End 10+2"
;END DIALOG
;DIALOG EDITOR: "" 0x2010703 "" ""
ret
;messages
sel message
,case WM_INITDIALOG DT_Init(hDlg lParam); ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,a="10 minutes"
,a.setwintext(hDlg)
,EnableWindow(id(IDCANCEL hDlg) 0)
,opt waitmsg 2
,wait 3
,EnableWindow(id(IDCANCEL hDlg) 1)
,bee
,case IDCANCEL DT_Cancel hDlg
ret 1