Hi,
can somebody please explain why this does work:
and this not?
THX
can somebody please explain why this does work:
B4X:
NbCols=3
For r = 0 To 0 '<----------?????????
For c = 0 To NbCols -1
j = r * NbCols + c
Dim pnl As Panel
titles.Add("Title" & j)
pnl.Initialize("pnl")
j=r*RowHeight
scvTest.Panel.AddView(pnl, c * ColWidth, r * RowHeight, ColWidth, RowHeight)
pnl.Tag = j
pnl.Color = Colors.Transparent
Dim bmp As Bitmap
bmp.Initialize(File.DirAssets, RemotePicture(j))
Dim cvs As Canvas
cvs.Initialize(pnl)
cvs.DrawBitmap(bmp, Null, ImageRect)
Next
Next
and this not?
B4X:
r=0
NbCols=3
For c = 0 To NbCols -1
j = r * NbCols + c
Dim pnl As Panel
titles.Add("Title" & j)
pnl.Initialize("pnl")
j=r*RowHeight
scvTest.Panel.AddView(pnl, c * ColWidth, r * RowHeight, ColWidth, RowHeight)
pnl.Tag = j
pnl.Color = Colors.Transparent
Dim bmp As Bitmap
bmp.Initialize(File.DirAssets, RemotePicture(j))
Dim cvs As Canvas
cvs.Initialize(pnl)
cvs.DrawBitmap(bmp, Null, ImageRect)
Next
THX