B4J Question [B4XPages] Static menu with pages

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
Is it possible to implement B4XPages inside a pane? I need to have a static menu list and change only the content at the right side of the screen!
Thank you in advance!
 

udg

Expert
Licensed User
Longtime User
If I understand it correctly, you want to have the left part of each of your pages dedicated to a static menu; pressing buttons on that menu should change the page showed on the right.
One way could be to use B4xPages+B4xDrawer and have the drawer permanently open. Since this isn't the way it was designed to work, consider it a plan B.
Another way could be the drawing of your pages as made by a left panel and a right panel. On the left panel you load the menu layout (identical for each page). You prepare a class to manage the buttons on the menu (through their TAG property of them) so to have a single point where the logic for the menu items' management is stored and exercized. Finally each page will have its own specialized layout (for the right panel) along with its controls and code.

Obviously the correct answer for your original question is the one in post #2.
Here I simply suggested a way to accomplish what I understand could be your goal.
 
Upvote 1
Top