01-17-2009, 04:36 AM
like this...
Function Dialog5
Function Dialog5
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3 4 5"
str e3 e4 e5
if(!ShowDialog("Dialog5" &Dialog5 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 173 81 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Edit 0x54030080 0x200 4 2 96 14 ""
;4 Edit 0x54030080 0x200 4 20 96 14 ""
;5 Edit 0x54030080 0x200 4 40 96 14 ""
;6 Static 0x54000000 0x0 104 4 48 13 "YAHOO"
;7 Static 0x54000000 0x0 102 24 74 10 "STARTING NUMBER"
;8 Static 0x54000000 0x0 102 44 76 10 "ENDING NUMBER"
;9 Button 0x54032000 0x0 60 60 48 14 "START"
;END DIALOG
;DIALOG EDITOR: "" 0x2020105 "" "" ""
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 9
,,str yahoo.getwintext(id(3 hDlg))
,,str oryah=yahoo
,,str s.getwintext(id(4 hDlg))
,,str t.getwintext(id(5 hDlg))
,,int z = val(s)
,,int d = val(s)
,,int y = val(t)
,,y+1
,,int i
,,for i d y
,,,yahoo=oryah
,,,yahoo+z
,,,out yahoo
,,,z+1
,case IDOK
,DT_Ok hDlg ;;*
,case IDCANCEL DT_Cancel hDlg ;;*
ret 1