Hi,
I have a b4X application with 3 Pages..
viz. 'Main Menu Page' -> 'Page 1' ->'Page 2'
So, I am calling 'Page 2' from 'Page 1' via B4xPages.ShowPage...
In 'Page 2' , I have disabled the BACK BUTTON by using 'Return False' in the B4XPage_CloseRequest event which I have written under 'Page 2'.. i.e. The BACK BUTTON is visible in 'Page 2' but nothing happens if I select it (which is what I want)..
Now, in 'Page 2' I have 2 buttons
Button 1-> For confirming some tasks and returning to 'Page 1'
Button 2-> For cancelling everything and returning to 'Page 1'
For both the the buttons I have used B4XPages.ShowPageAndRemovePreviousPages( "id of Page 1") in their respective 'Click' events.
Upon the start of the Program I can do the following:
1) I can go to 'Page 1' from my 'Main Menu Page' and use the BACK button on 'Page 1' and go back to 'Main Menu Page'.
Note that the 'Back Button' on 'Page 1' is VERY MUCH VISIBLE when I am going forward from 'Main Menu Page' to 'Page 1'.
2) From 'Page 1' I can go to 'Page 2'.
The Problem:
From 'Page 2', after clicking 'Button 1' or 'Button 2', When the control goes to 'Page 1' again, there is NO BACK BUTTON on 'Page 1' due to which I am unable to go to 'Main Menu Page' from there..
NOTE: If suppose, I take the control back to 'Main Menu Page' DIRECTLY from both Button 1 and Button 2 (of 'Page 2') and again invoke 'Page 1' from the 'Main Menu Page'.. then everything is fine ... But I want the control to go back to 'Page 1' from 'Page 2' and in 'Page 1' the end-user can either do other tasks or press the BACK BUTTON on 'Page 1' to go back to the 'Main Menu Page'.. Now this 'BACK BUTTON' is NOT VISIBLE when I take control back from 'Page 2' to 'Page 1' (as described above) and that is the issue...
I hope I have made it clear...
Requesting for help in this regard...
Thanks..