Context Menus

Ricky D

Well-Known Member
Licensed User
Longtime User
Has anyone managed to get context menus working in android using B4A?

I've tried searching the forum but all I get is references to the B4PPC which as far as I know only applies to Windows Mobile devices.

I've thought of creating a panel to do this. Don't know if that's the right approach.

Regards, Ricky
 

stevel05

Expert
Licensed User
Longtime User
Yes, if I want context menu's or help I'll use longclick and a panel.
 
Upvote 0

raytronixsystems

Active Member
Licensed User
Longtime User
I maintain a state flag for each logical section of my application. I have a subroutine the captures the keycodes MENU and BACK and process these "action keys" in a subroutine using a "select case" framework to determine what Help or Menu screen to display or where to go next in my App. This is working out quite well in my current project. I always know where I am and what I am going to do next and able to capture the asynchronous keycode events and process them in an orderly manner. This way there are no "surprises" when running the App. I created a subroutine to set the current state and call that frequently in my App.
 
Last edited:
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
^^ Would you care to share that subroutine? I'm very interested in capturing the menu and back keys. Thanks!
 
Upvote 0

raytronixsystems

Active Member
Licensed User
Longtime User
Last edited:
Upvote 0
Top