I have many panels each corresponds to one layout (loaded by LoadLayout).
When device BACK button is pressed, I want to close the current panel.
So I am using Activity_KeyPress to handle the BACK button press event.
But how do I tell which layout is in front?
I see in this post:
that "Select layout" is used to tell.
I tried but it doesn't work, "layout" is not recognized.
When device BACK button is pressed, I want to close the current panel.
So I am using Activity_KeyPress to handle the BACK button press event.
But how do I tell which layout is in front?
I see in this post:
Back button select case statement
I want to create a select case statement for the back button. I guess my main problem is how to dectect which layout is loaded. So something like this. Select case Backbutton case Layout("Main") loaded Activity.removelayout("Main")...
www.b4x.com
I tried but it doesn't work, "layout" is not recognized.