I have a ListView and I have to check, if the selected position has changed. If the change is done by RightMouseClick I have to do something with the data inside.
There are two events:
But in SelectedIndexChanged I can't investigate if it was raised by "RIGHT_BUTTON", because I don't have EventData. In MouseClicked I am not informed, if a selection change was done by keyboard. And if I use both events, only one is fired.
Any solution?
There are two events:
B4X:
Sub MyListView_SelectedIndexChanged(Index As Int)
End Sub
Sub MyListView_MouseClicked(EventData As MouseEvent)
End Sub
But in SelectedIndexChanged I can't investigate if it was raised by "RIGHT_BUTTON", because I don't have EventData. In MouseClicked I am not informed, if a selection change was done by keyboard. And if I use both events, only one is fired.
Any solution?