B4J Question ListView and ClickEvent

Andie

Member
Licensed User
Longtime User
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"?
 

udg

Expert
Licensed User
Longtime User
SelectedIndexChanged(Index As Int)? Sorry, it'a long time that I use only CLVs
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I think the ListView-Events for B4J and B4A are different. Am I wrong?
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

Harris

Expert
Licensed User
Longtime User
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
Top