10-09-2012 09:59 AM
I'm adding an Application Menu, using the example in C++ from here: https://developer.blackberry.com/cascades/document
// Create the application menu Menu *menu = new Menu; // Create the actions and add them to the menu ActionItem *actionOne = ActionItem::create() .title("Action 1"); ActionItem *actionTwo = ActionItem::create() .title("Action 2"); menu->addAction(actionOne); menu->addAction(actionTwo); // Set the menu of the application Application::instance()->setMenu(menu);
Unfortunatly the example, does not go into how to change a page when an action is pressed.
Does anyone know how to do this?
Solved! Go to Solution.
10-10-2012 12:24 PM
10-10-2012 02:34 PM
10-10-2012 03:44 PM
That is code that shows an Application Menu in cascades.The documentation shows the difference.
The only way that I was able to get the application menu to work is with a navigation pane and the additional code to limit it to one menu screen.
Since this is the cascades development form, it is appropriate. If you want native code, then you might want to post to the Native Development forum.
10-11-2012 09:16 AM - edited 10-11-2012 09:26 AM