B4J Question XUI_Touch event: how to consume it after processing ?

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Is it possible to consume this event cross-platformly after processing ?
When processing is finished - it needs to prevent passing it to the container(-s).
 
Last edited:
Solution
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

peacemaker

Expert
Licensed User
Longtime User
Hi, All

If to skip all above - and return to the topic subject - any suggestion how to consume the B4X _Touch event in B4J ?
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
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
 
Upvote 0
Solution
Top