I have a ListView with 20 items (rows) on it. The rows are defined as Panes. On each Pane are some buttons and a ImageView on the right side:
Now I need a possibility to receive the x-position of the mouse inside the ImageView.
As long as I do not press the Mousebutton I receive in ImageEvent_MouseMoved values from 0 (left) to 100 (right).
But if I keep the button pressed and move over the image I do not longer receive the ImageEvent_MouseMoved (EventData As MouseEvent) but the pane or item gets selected. (blue)
Does anybody knows a solution?
Now I need a possibility to receive the x-position of the mouse inside the ImageView.
As long as I do not press the Mousebutton I receive in ImageEvent_MouseMoved values from 0 (left) to 100 (right).
B4X:
Private Sub VolumeEvent_MouseMoved (EventData As MouseEvent)
Log( EventData.PrimaryButtonDown)
Dim locImage As ImageView=Sender
Log("volume " & locImage.Tag & " " & EventData.x )
End Sub
But if I keep the button pressed and move over the image I do not longer receive the ImageEvent_MouseMoved (EventData As MouseEvent) but the pane or item gets selected. (blue)
Does anybody knows a solution?