Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to apply #sub to diffrent Grid objects
#2
Function Function11
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;3 QM_Grid 0x56031041 0x200 88 4 96 48 "0[]A[]B"
;4 Button 0x54032000 0x0 8 12 48 14 "Button"
;5 Button 0x54012003 0x0 12 40 48 10 "Check"
;6 QM_Grid 0x56031041 0x200 88 60 96 48 "0[]A[]B"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;END DIALOG
;DIALOG EDITOR: "" 0x2040A00 "*" "" "" ""

str controls = "3 5 6"
str qmg3 c5Che qmg6
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam
#region ...
ICsv csv._create
DlgGrid g.Init(hDlg 3)
DlgGrid g2.Init(hDlg 6)

sel message
,case WM_INITDIALOG
,str s =""
,csv.FromString(s)
,csv.ToQmGrid(g)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL

,case 4
,out sub.test2(6 hDlg)
,out sub.test2(3 hDlg)
ret 1

#sub test2
function controlId hDlg
DlgGrid grid

grid.Init(hDlg controlId)

ret grid.CellSet(grid.RowsCountGet 1 "yes")
Is this what your looking for?


Messages In This Thread
RE: How to apply #sub to diffrent Grid objects - by redbull2k - 07-25-2020, 10:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)