I have a dynamically populated ScrollView containing a list of checkboxes, and defined an common handler for all of them
For i = 0 To (filelist.Size - 1 )
Dim chk As CheckBox
chk.Initialize("chk")
chk.Gravity = Gravity.CENTER_VERTICAL
chk.Text = filelist.Get(i)
chk.TextSize = textsize
lstChecks.Add(chk)
pnl.AddView(chk, 0, height * i, 100%x, height)
Next
Sub chk_LongClick
???
End Sub
i want to trap a longclick event, but when the sub is called, how can i access the triggered checkbox?
using the Me object produces a compile error
For i = 0 To (filelist.Size - 1 )
Dim chk As CheckBox
chk.Initialize("chk")
chk.Gravity = Gravity.CENTER_VERTICAL
chk.Text = filelist.Get(i)
chk.TextSize = textsize
lstChecks.Add(chk)
pnl.AddView(chk, 0, height * i, 100%x, height)
Next
Sub chk_LongClick
???
End Sub
i want to trap a longclick event, but when the sub is called, how can i access the triggered checkbox?
using the Me object produces a compile error