Jun 15, 2020 Replies: 3 In case anyone is interested I attach a modified version of Erels' ThreePagesExample for B4A only. It demonstrates the following enhancements. 1) B4XMainPage requests a Runtime permission. 2) All three pages have a B4XDrawer menu with some code in B4XPage_CloseRequest to close the Drawer if it is open instead of going back. 3) Page 3 changes the use of Action Home to open the Drawer, has some menu items added, and has the code to close the Drawer when the menu becomes visible. Attachments B4XPagesTest-B4A.zip B4XPagesTest-B4A.zip 40.8 KB · Views: 1,933 Click to expand...
In case anyone is interested I attach a modified version of Erels' ThreePagesExample for B4A only. It demonstrates the following enhancements. 1) B4XMainPage requests a Runtime permission. 2) All three pages have a B4XDrawer menu with some code in B4XPage_CloseRequest to close the Drawer if it is open instead of going back. 3) Page 3 changes the use of Action Home to open the Drawer, has some menu items added, and has the code to close the Drawer when the menu becomes visible.
LucaMs Expert Licensed User Longtime User Jun 15, 2020 #2 Wrong place, it not a question but a useful example Thank you, @agraham
AnandGupta Expert Licensed User Longtime User Jun 15, 2020 #3 LucaMs said: Wrong place, it not a question but a useful example Click to expand... Agree. Should be moved to code snippet or tutorial example. Regards, Anand
LucaMs said: Wrong place, it not a question but a useful example Click to expand... Agree. Should be moved to code snippet or tutorial example. Regards, Anand
Douglas Farias Expert Licensed User Longtime User Nov 4, 2020 #4 Thank you very much, I was looking for the events. B4X: Sub B4XPage_Appear End Sub Sub B4XPage_Disappear End Sub Sub B4XPage_Foreground End Sub Sub B4XPage_Background End Sub I initially thought it was Sub B4XPage_Resume Saved me! Thank you again.
Thank you very much, I was looking for the events. B4X: Sub B4XPage_Appear End Sub Sub B4XPage_Disappear End Sub Sub B4XPage_Foreground End Sub Sub B4XPage_Background End Sub I initially thought it was Sub B4XPage_Resume Saved me! Thank you again.