B4J Question Building nested horizontal menus dynamically

B4JExplorer

Active Member
Licensed User
Longtime User
Hi,

Looking at

https://www.b4x.com/android/forum/threads/designer-menu-items.56602/

and

https://www.b4x.com/android/forum/threads/menu-bar-add-submenu-items-dynamically.57454/


, I'm trying to figure out how to build an entire menu structure dynamically. In other words, taking an existing menu generated from the Designer, clearing all items out by code, and then adding the main items and their children, inside the code.

But the most important part, is whether it's possible to show the child items horizontally, directly under the parent items.

So using a simple example,

Main menu bar, called mnb_Main:

One Two Three

, and when item Two is selected, the second child menu displays (child items Two-A, Two-B, and Two-C) immediately under the main menu.

One Two Three
Two-A Two-B Two-C


Is that possible?
 

B4JExplorer

Active Member
Licensed User
Longtime User
You can add Two-B as a child of Two-A and Two-C as a child of Two-B. However they will not be expanded automatically.
I can probably set a sequence of hot keys, for the expansion.

Interesting way of looking at it. Ok, I'll see where it leads, thanks Erel.
 
Upvote 0
Top