Panel question

jeffnooch

Member
Licensed User
Longtime User
i added a panel via code that is 100%x and 100%y so it essentially covers the entire activity...one weird issue i see is that if the main activity has buttons let's say in the middle of the activity and i touch on the panel at that spot it will record the button press "through the panel" ... is there any way to prevent this?

thanks
 

NJDude

Expert
Licensed User
Longtime User
Yes, you have to add the TOUCH event for that panel when you generate members, for example:
B4X:
Sub myPanel_Touch(Action As Int, X As Float, Y As Float)
          'Consume tapping on panel
End Sub
 
Upvote 0
Top