I would like to differentiate between left and right mouse clicks when clicking on a b4j Pane. I understand from the docs B4X Basic Language pp 80 which events each object type can activate, but I couldn't find anything on Right - Left differentiation.
The next code add the funcionality in b4x to capture the click & longClick using Touch, in case of b4j add the option to fire the longClick using the Right Mouse Click or the secondary mouse button. - Unzip the file "XUI Views.b4xlib" - Look for the file "SwiftButton.bas" and open - Add the...
how to activate the function right click of a mouse? ex: --------------------------------- Sub button1_rigt_click Msgbo(" all ok ") End Sub ---------------------------------------------- That this wrong, how?
On a MainForm a Canvas(XUI) was added on which the TOUCH_ACTION Event is used: - Could it be possible to differentiate which Mouse Button was the trigger (primary/secondary/middle) ?
Private Sub Pane1_MouseClicked (EventData As MouseEvent)
If EventData.PrimaryButtonPressed =True Then
Log("Leftmouse clicked!")
End If
If EventData.MiddleButtonPressed =True Then
Log("Midlemouse clicked!")
End If
If EventData.SecondaryButtonPressed =True Then
Log("Rightmouse clicked!")
End If
End Sub