B4J Question Possible to trap mouse events on a B4XTable?

Mikelgiles

Active Member
Licensed User
Longtime User
Is there any way to trap any mouse events on a B4XTable and know which cell the mouse is on? Mouse move or mouse hover would be perfect. I see some references on the forum on both but have seen nothing on mouse events over a B4XTable which is where I want to use it.
 

ThRuST

Well-Known Member
Licensed User
Longtime User
@Mikelgiles Hi there! I haven't used B4XTable yet myself but as I noticed your question you got me thinking!
You might want to take a look at jFX MouseEvent. It seems logical that that might work. Anyway, best of luck!
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Is there any way to trap any mouse events on a B4XTable and know which cell the mouse is on? Mouse move or mouse hover would be perfect....



Something to get you started ...
In Designer click on the Form (not Table) & generate the desired mouse action events.
B4X:
Sub MainForm_MouseMoved (EventData As MouseEvent)
  
    Log($"Mouse is Moving ...  X = ${EventData.X}   Y = ${EventData.Y}"$)
  
End Sub
 
Upvote 0
Top