In B4j: Pane has a Touch event but I assume you want to use the mouse for 'touching' the desktop screen.
(correct me if you really have a touch screen for the windows machine)
In the Touch event 3 different actions are handled:
- Pane1.TOUCH_ACTION_DOWN, the user touches the screen - similar to MousePressed
- Pane1.TOUCH_ACTION_MOVE, the user moves the finger without leaving the screen - similar to MouseDragged
- Pane1.TOUCH_ACTION_UP, the user leaves the screen - similar to MouseReleased
Each of MousePressed, MouseDragged, MouseReleased has a (EventData As MouseEvent) as argument
EventData has .Consume method