08-31-2009, 06:49 PM
Function Dialog82
Function Function168
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "4"
str rea4
if(!ShowDialog("Dialog82" &Dialog82 &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 Button 0x54032000 0x0 8 8 48 14 "Upload"
;4 RichEdit20A 0x54233044 0x200 2 30 96 48 ""
;5 Static 0x54000000 0x0 78 8 48 12 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030108 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,_s="Uploading..."; _s.setwintext(id(5 hDlg))
,opt waitmsg 1 ;;process messages while waiting
,wait 0 H mac("Function168") ;;run Function168 in separate thread and wait
,_s=""; _s.setwintext(id(5 hDlg))
,case IDOK
,case IDCANCEL
ret 1Function Function168
