Strange and unexpected behavior

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I think of something very strange, summarizing and simply, I create a new project, I add a button in the center of the screen, at the 'click' show a message, eg msgbox ("oooh", "" ).
Now add a panel that covers the entire screen and the button is hidden under the panel.
I run the program and if I click the center of the screen (where the button is) get the message "oooh"
Is that a bug?
Thanks and regards.
 

NJDude

Expert
Licensed User
Longtime User
It is not a bug, you have to add a TOUCH even for that panel to consume the event, like this:
B4X:
Sub <YOUR_PANEL_NAME>_Touch (Action As Int, X As Float, Y As Float)
 ...
 
Last edited:
Upvote 0
Top