Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Help
#1
Hey i have this dialog and i want it to be able to grab the text from the 2 spaces wen the button Grab is pressed and out put the starting number all the way to the ending number in order....like say it was filled in 1 and 50 it wud out put

1 2 3 4 5....50

every number in between the two numbers entered but including them....can anyone help?

Dialog:
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 209 44 "Number Dialog"
;2 Button 0x54030000 0x4 148 6 56 32 "CLOSE"
;3 Edit 0x54032000 0x200 56 8 32 14 ""
;4 Edit 0x54032000 0x200 56 24 32 14 ""
;5 Static 0x54000000 0x0 2 10 52 10 "Starting Number"
;6 Static 0x54000000 0x0 4 26 50 8 "Ending Number"
;7 Button 0x54032000 0x0 90 6 56 32 "GRAB"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""


str controls = "3 4"
str e3 e4
if(!ShowDialog("Dialog2" &Dialog2 &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 IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)