11-12-2012 10:09 PM
hi
i using TabbedPane for my app. I don't know how to creat setting page for application menu . I tried to do the same here http://supportforums.blackberry.com/t5/Cascades-De
Solved! Go to Solution.
11-13-2012 12:49 PM
Paste this into your main.qml, and this should get you started. The first action on the Application Menu will be "My Sheet" and will open a sheet that says "This is my sheet stuff" and there will be a close button on the bottom. Help it helps.
import bb.cascades 1.0
TabbedPane { Menu.definition: MenuDefinition { // Specify the actions that should be included in the menu actions: [ ActionItem { title: "My Sheet" // imageSource: "" onTriggered: { mysheet.open(); } }, ActionItem { title: "Settings" // imageSource: "" onTriggered: { // } }, ActionItem { title: "Info" onTriggered: { // } } ] // end of actions list } attachedObjects: [ Sheet { id: mysheet Page { Container { Label { text: "This is my sheet stuff" } } actions: [ ActionItem { title: "Close" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { mysheet.close(); } } ] } } ] showTabsOnActionBar: true Tab { title: qsTr("Tab 1") Page { id: tab1 } } Tab { title: qsTr("Tab 2") Page { id: tab2 } } Tab { title: qsTr("Tab 3") Page { id: tab3 } } }
Then for some extra help in making a "Settings" page you may want to read my tutorial on persistent memory and aliases: http://bbcascadescode.tumblr.com/post/35544384390/
-Brian
01-06-2013 06:33 AM
I had the same source but even with this example I end in a strange situation - when I click on action, the sheet is shown correctly, I can close, everything seems to be ok. But for the second time, it is not - no Sheet is shown and menu is not accessible anymore. Anyone experienced this? For now I'm going to use ordinary page action for that one action ![]()
01-06-2013 06:50 AM
RezzaBuh wrote:
I had the same source but even with this example I end in a strange situation - when I click on action, the sheet is shown correctly, I can close, everything seems to be ok. But for the second time, it is not - no Sheet is shown and menu is not accessible anymore. Anyone experienced this? For now I'm going to use ordinary page action for that one action
don't spend your time on this
I got the info, that it is fixed in the next OS update for dev alpha
01-06-2013 06:52 AM
This is an Application Menu bug, please check this thread for details and workaround:
http://supportforums.blackberry.com/t5/Cascades-De
01-06-2013 06:54 AM
I don't have implemented this workaround in my apps,
because I know that the ApplicationMenu Bug is already fixed by RIM and will work again with next DevALpha OS Update - I expect this update very soon