Is it possible (my guess is yes) to use 2 distint B4XPages objects ?
Why I ear you ask... Well, I want to take the splash screen example as a base, and add a few buttons to this "main page". each will then call its own B4XPage object...
But since I haven't touched B4A for a while, and never used the B4XPages object, I thought I would ask first...
A small example would be much appreciated but not a must.
ok...
Please stay with me just a minute or two...
I'm planning a new app for my company... It will be an evolutive app, meaning that I plan to start with 2 or 3 modules, and then add to this.
The app will have a single entry point, a sort of dash board.
In order to not break any functionability already implemented, having disting B4XPages objects woud be the best approach.
As you know, I am a clumsy coder, so I want to minimize the riscs of breaking the code to a helpless state after a few modules are implemented already!
Maybe the terms are not clear but you can add as many B4XPages modules as you like. You always have a single object named B4XPages. See the three pages example it will help you understand how to add multiple pages.
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...
www.b4x.com
It has a few useful extensions so you can avoid reinventing the wheel.
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...
www.b4x.com
It has a few useful extensions so you can avoid reinventing the wheel.
Thank you both for your input.
I took both examples for a spin, and got a better picture of the possibilities....
Andrew's example allowed me to see that the B4XPages is a lot more versatile than I thought.