tufanv Expert Licensed User Longtime User Dec 29, 2020 #1 Hello, I use several panels in my app. When there is a panel in view and user click on some empty space on it, the panel in the back is also clicked. Is this normal ? Any way to avoid them without disabling the other panels ? thanks
Hello, I use several panels in my app. When there is a panel in view and user click on some empty space on it, the panel in the back is also clicked. Is this normal ? Any way to avoid them without disabling the other panels ? thanks
asales Expert Licensed User Longtime User Dec 29, 2020 #2 I use this code to avoid this behavior: B4X: Sub pDialog_Touch (Action As Int, X As Float, Y As Float) End Sub A empty code in the event of the front panel, to capture the touch and do nothing. Upvote 0
I use this code to avoid this behavior: B4X: Sub pDialog_Touch (Action As Int, X As Float, Y As Float) End Sub A empty code in the event of the front panel, to capture the touch and do nothing.
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2020 #3 You can also implement the Click event instead of the Touch (a bit cleaner). Upvote 0