That is correct.According to my knowledge all types of views have the tag property.
The bug is that when I press somewhere (can't figured it yet)
I get sender without a tag,
if I press the on the list, Iam getting tag
but you said there can't be such object without tab
how can I overcome such bug (I mean if sender return without tag)
Label3.Initialize("View")
'and setting the tag
Label3.Tag=i&"3"
ImageView1.Initialize("View")
'and setting the tag
ImageView1.Tag=i&"6"
Dim p As Panel
Sub LoadReminders
Dim InsideTabWidth As Int
InsideTabWidth = Activity.Width - tabsInsideMargin*2 ' margin on the left and on the right
Dim InsideTabHeight As Int
InsideTabHeight = Activity.Height - 60dip
Msgbox(InsideTabWidth, "InsideTabWidth")
Dim p As Panel
p.Initialize("PanelReminder")
p.LoadLayout("ReminderListPanel")
p.Tag = "1"
svReminders.Panel.AddView(p, 0, 0, InsideTabWidth, 88dip)
Dim p As Panel
p.Initialize("PanelReminder")
p.LoadLayout("ReminderListPanel")
p.Tag = "2"
svReminders.Panel.AddView(p, 0, 1*90dip, InsideTabWidth, 88dip)
End Sub
Sub PanelReminder_Click
Dim p As Panel
p = Sender
Msgbox(p.Tag, "PanelReminder")
End Sub
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?