Pressing Buttons Behind the panel

thestar19

Member
Licensed User
Longtime User
Hey guys

Its just a general problem that I have been having with some of my applications...

This is whats happening:

1.The user presses a BIG button.
2.The button calls a person
3.After that he is done talking,The app loads another layout by a button press
4.Even though the second layout contains a panel,the application will still call the person if the user presses on the place that the button was on the last layout.

What can I do to stop this from happening?


Thank you
Thestar19
 

blablabla

Member
Licensed User
Longtime User
You can easily Disable the button, so nothing happens when user tap there.
Do something like:
B4X:
Button1.Enabled = False
and you'll go fine ;)
 
Last edited:
Upvote 0

thestar19

Member
Licensed User
Longtime User
Thank you,That worked!

"
You will have to consume tapping on the panel (assuming you have a panel named Panel1)
Code:

Sub Panel1_Touch(Action As Int, X As Float, Y As Float) As Boolean

Return True

End Sub
"
 
Upvote 0

wheretheidivides

Active Member
Licensed User
Longtime User
So is this for the main panel (with the hidden button) or the 2nd panel (now full screen)? Also, does this de-activate the 1st panel or activate the second? I am having this same problem.


Sub Panel1_Touch(Action As Int, X As Float, Y As Float) As Boolean
Return True
End Sub
 
Last edited:
Upvote 0
Top