Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combine variables
#8

I did. Still doesnt work right. Here's the 2 dialogs. Maybe this will help.


Function ( Number_Dialog ) Trigger ( S1 )
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 209 55 "Number Dialog"
;2 Button 0x54030000 0x4 150 12 56 32 "CLOSE"
;3 Edit 0x54032000 0x200 56 20 32 14 ""
;4 Edit 0x54032000 0x200 56 36 32 14 ""
;5 Static 0x54000000 0x0 2 22 52 10 "Starting Number"
;6 Static 0x54000000 0x0 4 40 50 8 "Ending Number"
;7 Button 0x54032000 0x0 90 12 56 32 "GRAB"
;8 Edit 0x54030080 0x200 30 4 58 14 ""
;9 Static 0x54000000 0x0 8 8 18 8 "Root"
;END DIALOG
;DIALOG EDITOR: "" 0x2020102 "" "" ""


str controls = "3 4 8"
str e3 e4 e8
if(!ShowDialog("Number_Dialog" &Number_Dialog &controls)) ret



ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)

sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 7 ;;Grab
,int+ i a b c; str+ d s s1 s2 s3
,s.getwintext(id(3 hDlg)); a=val(s)
,s.getwintext(id(4 hDlg)); b=val(s)
,d.getwintext(id(8 hDlg))
,for i a b+1
,,mac- "Other_Dialog"

,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1




Function ( Other_Dialog ) Trigger ( S2 )
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;4 Button 0x54032000 0x0 68 82 72 14 "Insert Information"
;3 Edit 0x54230844 0x20000 26 18 156 60 ""
;5 Button 0x54020007 0x0 20 10 168 90 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020102 "" "" ""



str controls = "3"
str e3
if(!ShowDialog("Other_Dialog" &Other_Dialog &controls)) ret



ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4 ;;Insert Information
,int+ i a b c; str+ d s
,for i a b+1
,,s.from(d i "[]")
,,s.setwintext(id(3 hDlg))
,
,case IDOK
,case IDCANCEL
ret 1
Taking on Quick Macros one day at a time


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)