i have two xcustomlistview in my project first clv called CustomListView1 and i use it as chat box
second clv called copymenu and i use it as menu
i am trying to place copymenu at the position of the clicked item of CustomListView1 in a previous thread Erel Suggested to do the following
but the copy menu position is always showing on top not near the clicked item as it should be
what could be my mistake ?
second clv called copymenu and i use it as menu
i am trying to place copymenu at the position of the clicked item of CustomListView1 in a previous thread Erel Suggested to do the following
B4X:
Sub CustomListView1_ItemClick (Index As Int, Value As Object)
copymenu.AsView.Top = CustomListView1.GetPanel(Index).Top - CustomListView1.sv.ScrollViewOffsetY + CustomListView1.GetBase.Top
If copymenu.AsView.Visible = True Then
copymenu.AsView.Visible = False
else If copymenu.AsView.Visible = False Then
copymenu.AsView.Visible = True
End If
End Sub
but the copy menu position is always showing on top not near the clicked item as it should be
what could be my mistake ?