Menu nicely formatted

AlpVir

Well-Known Member
Licensed User
Longtime User
Looking at this code snippet :

B4X:
Activity.AddMenuItem ("unoAlto", "mnuAlto1")
Activity.AddMenuItem ("dueAlto", "mnuAlto2")
Activity.AddMenuItem ("treAlto", "mnuAlto3")
Activity.AddMenuItem ("unoBasso", "mnuBasso1")
Activity.AddMenuItem ("dueBasso", "mnuBasso2")
Activity.AddMenuItem ("treBasso", "mnuBasso3")

is there a way to make the menu appear TWO rows of THREE each, three up and three down?
Thinking about it maybe a solution exists but is so complicated that, before we hand prefer to know if there's something simpler.
It is used AddMenuItem2 statment and add a large image exactly (or less) 1/3 of the width of the screen. The image should be transparent or white or black, I'm not sure.
This will strain the system to wrap the desired point (after the third menu !) and not where he wants.
Thanks in advance
 

mjtaryan

Active Member
Licensed User
Longtime User
This is exactly how the menu should appear...

I'm not sure what you mean here. From what I've seen the number of horizontal items vary depending on the app. It would be helpful if we could get some detailed information on both how the menu is laid out. It's limitations, max number of items per row, max rows, what happebs when a row isn't filled, how to control the layout/arrangement and so on. Thanks.
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
My 2 cents worth....

I'm using a panel and buttons on it to create custom menus.

I make the panel a white one then put black buttons on to simulate a border.

Of course I can change the panel color to make a different border color.

In code you can manipulate each "menu item" (button) to look however you want.

It works very nice for me.

Regards, Ricky
 
Upvote 0
Top