Menu

cnicolapc

Active Member
Licensed User
Longtime User
Hi,
I would like to set up different menus for each panel of the application?
For example, the panel1 (New, Edit, exit)
Panel2 (Find, order)?
Thanks in advance
Nicola
Ps: Erel Congratulations to the bridge version 1.3 is really fast.
 
Last edited:

kickaha

Well-Known Member
Licensed User
Longtime User
You cannot change the menus once set in an activity.

If your panels need their own menus maybe they should be separate activities.
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
Another method is to catch the menu button press and handle it yourself

B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 
'return true if you want to consume the event
   If KeyCode = 82 Then ' Menu key
      'Your code here to handle the menu
      Return True
   End If
End Sub
You can then pop up a different menu panel based on which main panel you are on.
 
Upvote 0
Top