B4J Question Tableview: distinguish between normal and long click on an item

Daestrum

Expert
Licensed User
Longtime User
I suppose you could start a timer when the user clicks (onMousePressed event) and then stop it when they release the mouse button (onMouseReleased event).
You could then decide if you think it was a long click or not, you would also need to check the mouse hasn't moved .
If it's for use on a touch screen you could use the onTouchStationary event to detect a long click.
 
Upvote 0

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I intended B4I.
I realised now that I have done a mistake and I put this thread in B4J forum.

Could you move this thread ? Or may I open another one in the correct section ?

Thank you
 
Upvote 0
Top