I am using the contextmenu here:
Can anyone give me an example of how to add a contextmenu to a Label. It's probably easy but I cannot get it to work. I have searched the forum but nothing helped. Thanks Dave.
When I right click on a button to bring up the context menu, the button is activated.
I have found that this is the case only when the sub that catches the normal button click is like this:
Private Sub btnExampleButton_MouseClicked(EventData As MouseEvent).
If the envent handleer is changed to Private Sub btnExampleButton_Click, then the problem goes away.
This prevents the EventData as MouseEvent from being available in the sub that handles the mouse click which can also be a problem.
Is there a better way to fix this problem?
See here for more details:
I am not sure if I am using the correct word "nodes". I want a context menu that has one sub that handles right click events on various buttons, labels, etc (nodes?). The code here does that: https://www.b4x.com/android/forum/threads/contextmenu-solved.146746/ BUT, It doesn't indicate which...