Don't use scene builder. You should use the internal designer.
Do you need to change the menu structure at runtime?
Yes that would be the best. Actually what I want is to handle the menubar manually so I can use the internal designer instead of Scene builder
I found an exampe in the forum that I can play around with, but how to save and load the generated structure? Must it be saved as a MAP?
What is a MAP format? Thank you Erel. Btw dark theme in editor looks great, even better than visual studio I love B4X concept it's the best
Dim ports As Menu
ports.Initialize("Ports", "")
Dim FileMenu As Menu
FileMenu.Initialize("FileMenu", "")
MenuBar.Menus.Add(FileMenu)
FileMenu.MenuItems.Add(ports)
For Each m As String In Array As String("a", "b", "c")
Dim mm As MenuItem
mm.Initialize(m, "mm")
ports.MenuItems.Add(mm)
Next