12-28-2012 11:07 PM
Hi,
I am wondering if there is a way to disable a swipe down menu. The reason I want it disabled is because I have implemented my about and help page as pages instead of sheets, so within those pages the menu should not be visible. (Otherwise users can infinitely open the pages and eventually cause a crash). Note that my menu is entirely implemented in QML. Any tips?
Thanks,
Gerry
Solved! Go to Solution.
12-28-2012 11:25 PM
you can disable the menu item when it is triggered, and re-enable it when the page is popped.
use 'enabled' property of an ActionItem to enable/disable the menu item.
or you could easily convert your Pages to Sheets...it's just wrapping them in Sheet {} ;-)
if you meant that you created your own version of the menu, you could completely disabled it with the following code:
Application::instance()->setMenuEnabled(false);
12-28-2012 11:35 PM
Thanks for the tip. I didn't realize the action items could be disabled and was trying to disable the entire menu! This solved my issue. Yes, I know how to make the pages into sheets, but I dislike sheets in this situation. That's my opinion of course.
12-29-2012 02:07 PM
Actually you can control the whole menu. Just use https://developer.blackberry.com/cascades/referenc