views:

96

answers:

2

Is there a way for a button to call a submenu?

I currently have a menu where if they select one of the options it opens a submenu, however I want to be able to start the submenu from the Button widget instead of the Menu object. \

Thanks!

A: 

I'm not sure if thats possible. One option would be to use a dialog as the sub menu, so that you can open it from either location.

Mayra
A: 

I think a better solution to this would be to register a listener on the button that simulates a touch event on the menu button.

So basically, when the user presses the button -- it "presses(using code)" the KeyCode_MENU Key. Now that I think about it -- this is kind of a hack but I don't see any other way to do it.

hwrdprkns