Firstly, I will explain what I am trying to achieve, I have a sql loop which draws out rows of data, for each row I have a blank png image, when the user clicks on the image I want a tick mark to appear(image swap), I dont know how to make each image call a sub that will only update the image a user has clicked on, my code is as follows,
How would I code the _click sub?
What would make each image unique?
Do I have to load the bitmap each time in the loop?
Thanks in advance
Tom
B4X:
For i = 0 To Cursor1.RowCount -1
img_blank_yes.Initialize("YesImg")
img_blank_yes.Bitmap = LoadBitmap(File.DirAssets, "yes_blank.png")
img_blank_yes.BringToFront
img_blank_yes.Tag = "YES"&i
ScrollView1.Panel.AddView(img_blank_yes, 475, img_height+31, 47dip, 50dip)
next
What would make each image unique?
Do I have to load the bitmap each time in the loop?
Thanks in advance
Tom
Last edited: