Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog loop
#4
there is no need for the 1 second delay in your loop that i can see .Why is it there?
Remove it and everything works.
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 280 166 "Dialog" "4"
;3 Button 0x54032000 0x0 231 2 48 14 "Loop"
;4 QM_Grid 0x56031041 0x200 2 2 227 162 "0x10,0,0,0x2,0x0[]A,,,"
;END DIALOG
;DIALOG EDITOR: "" 0x2040B00 "*" "" "" ""

str controls = "4"
str qmg4x
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

int i; str a csv
DlgGrid g.Init(hDlg 4)

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,ICsv z._create
,for i 0 13
,,a=i
,,z.Cell(i 0)=a
,,z.ToString(csv)
,,z.ToQmGrid(g 0)
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
Dialog loop - by nikks14 - 11-22-2020, 07:07 PM
RE: Dialog loop - by Kevin - 11-22-2020, 08:42 PM
RE: Dialog loop - by nikks14 - 11-23-2020, 12:32 AM
RE: Dialog loop - by Kevin - 11-23-2020, 02:17 AM
RE: Dialog loop - by nikks14 - 11-23-2020, 10:20 AM
RE: Dialog loop - by Kevin - 11-23-2020, 02:14 PM
RE: Dialog loop - by nikks14 - 11-23-2020, 03:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)