B B4JExplorer Active Member Licensed User Longtime User Apr 15, 2017 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2017 #2 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. Upvote 0
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.
B B4JExplorer Active Member Licensed User Longtime User Apr 16, 2017 #3 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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.