Menu items

tdocs2

Well-Known Member
Licensed User
Longtime User
I am using V2.22 of B4A.

I need to add four menu items to the activity. All of them end up in the Overflow icon on the Activity Title Bar.

The code is:

Activity.AddMenuItem("Menu 1", "Kmenu")
Activity.AddMenuItem("Menu 2", "Ymenu")
Activity.AddMenuItem("Menu 3", "Amenu")
Activity.AddMenuItem("Menu 4", "Wmenu")

I would like them to appear on the Activity Title Bar.

Second question: Can I control if I wanted a menu to go into the Overflow icon or stay in the Activity Title Bar?

Thanks for any help on this matter.
 

tdocs2

Well-Known Member
Licensed User
Longtime User
Addmenuitem3

Thank you, NJDude.

The addmenuitem3 is the answer. I could not find it in the Beginner's Guide, Keywords, or the Helpviewer. So I decided to add it to a program and this method for Activity addresses the issue that I raised.
 
Upvote 0
Top