A Andie Member Licensed User Longtime User Mar 17, 2020 #1 I have a ListView and add several names (Andy, Billy, Charly, Dolly, Elly etc.) I know that there are MouseClicked-events available for ListViews. But how can I get the index and the value when I - for example - click on the line with "Charly"?
I have a ListView and add several names (Andy, Billy, Charly, Dolly, Elly etc.) I know that there are MouseClicked-events available for ListViews. But how can I get the index and the value when I - for example - click on the line with "Charly"?
A Andie Member Licensed User Longtime User Mar 17, 2020 #2 I think the ListView-Events for B4J and B4A are different. Am I wrong? Upvote 0
udg Expert Licensed User Longtime User Mar 17, 2020 #3 SelectedIndexChanged(Index As Int)? Sorry, it'a long time that I use only CLVs Upvote 0
klaus Expert Licensed User Longtime User Mar 17, 2020 #4 Andie said: I think the ListView-Events for B4J and B4A are different. Am I wrong? Click to expand... No, you are right. They are different. In B4J ListView1.SelectedIndexChanged(Index As Int), as udg already answered. In B4A ListView1.ItemClick(Position As Int, Value As Object) Upvote 0
Andie said: I think the ListView-Events for B4J and B4A are different. Am I wrong? Click to expand... No, you are right. They are different. In B4J ListView1.SelectedIndexChanged(Index As Int), as udg already answered. In B4A ListView1.ItemClick(Position As Int, Value As Object)
Erel B4X founder Staff member Licensed User Longtime User Mar 17, 2020 #6 Switch to xCustomListView. Cross platform and fully customizable. Upvote 0
Harris Expert Licensed User Longtime User Mar 20, 2020 #7 It is too bad that this forum could not auto-post a link to xCLV whenever a question is presented regarding the standard Listview. Eventually, they are always directed that way.... and for a very good reason... Upvote 0
It is too bad that this forum could not auto-post a link to xCLV whenever a question is presented regarding the standard Listview. Eventually, they are always directed that way.... and for a very good reason...