B4J Question Desktop app with independent menu bar

BitsAndBytes

Active Member
Licensed User
I want to develop a sqlite app with 1 Form and 3 layouts(Customers, Products, Sales) and 1 menu bar. My problem is that on each layout i must add 1 Menubar and it is very hard to update each menubar on every layout when its needed. Is a way to add the menuBar on Form and load the layouts below the menu bar? Thank you!
 

Attachments

  • project.png
    project.png
    18 KB · Views: 225

klaus

Expert
Licensed User
Longtime User
I would use one Main layout with the menu on top. and 3 Panes below the menu, one for each layout.
Then the 3 other layouts which you load into the Panes.
Then you can use the Visible property to show the relevant Pane and hide the others.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You asked for 3 layouts !?
How many Panes could / would you have ?
It will be a mess with so many panes
I think that you won't several tenths of Panes, so would it really be that difficult? I don't think so.
If you save the current Pane in a variable you know which one is active and you can hide it before setting the new one visible.
For the code you could probably use classes, one for each Pane. I have never tested this.
 
Upvote 0
Top