Disable the Application Menu

I have a navigationPane with an Application Menu. One of the items in this menu is settings so
When I click on parameter I shows the Settings Page but I would like to turn off the Menu of the Application
When the user on the Configuration page

I put in the onCreationCompleted of my settingPage
Application.menuEnabled = false;

And when I click on the back button I do:
Application.menuEnabled = true;
navigationPane.pop ();

However, the Application Menu is always displayed in the settings page, so how can I disable it?

I did it!

When I press settings page, I disbale the application from the page menu, then

ActionItem {
    title: "Preferencias"
    imageSource: "asset:///images/ic_settings.png"
    onTriggered: {
        var page = getPreferenciasPage();
        page.onRefreshDropDownLicencia.connect(onRefreshDropDownLicencia);
        Application.menuEnabled = false;
        navigationPane.push(page);
    }
    function getPreferenciasPage() {
        if (! preferenciasPage) {
            preferenciasPage = idPreferenciasPage.createObject();
        }
        return preferenciasPage;
    }
},

Tags: BlackBerry Developers

Similar Questions

  • I use Firefox for a kiosk application. Can I disable the context menu and zoom?

    I use Firefox for an application kiosk on a touch screen monitor. I will prevent users from interacting with the browser interface. Is there a way to do this? Disable the context menu and zoom for the touch gestures could prevent users from getting into a State where they are unable to use the application.

    Hi TrevorTubbs, you can disable the zoom in the browser with the method described in http://kb.mozillazine.org/Locking_preferences & locking these preferences:

    lockPref("toolkit.zoomManager.zoomValues"; "1");
    lockPref("zoom.maxPercent"; 100);
    lockPref("zoom.minPercent"; 100);
    

    I'm not sure if disabling the context menu...

  • How to disable the top menu in PDF.js Firefox PDF Viewsers

    I have the site to read documents online for users.

    I want to disable the top menu with ease to print, navigate through the pages, zoom, miniature etc..

    I want people to read the document online without allowing them to download or print document.

    Any idea?

    -Thank you

    Articles for Adobe Reader won't help for the built-in PDF Viewer.

    I guess you want to keep viewers save a copy of the file locally.

    You can't stop unless people can see this file in their browser.

    If Firefox displays the file then the file is already downloaded in the browser.

    They can always do a screenshot copy even with the hidden menu bar and use save the page, as if the URL in the address bar is the PDF file or, if there is a link to that file on a page, use Save Link as.

    If they disable the built-in PDF Viewer and that you use another Viewer rather then you don't have control over what they do with this file.

    You will need to use a plugin like Flash to view this content, possibly recover the file via a secure connection.

  • I disabled the toolbar > > Menu button (via a right click on a PC, Windows 7) and cannot access the toolbar to add items to the sail back in. Any ideas?

    I disabled the toolbar > > Menu button (via a right click on a PC, Windows 7) and cannot access the toolbar to add items to the sail back in. Any ideas?

    Don't see the menu bar not (File, Edit, View, history, Favorites, tools, help)?
    Turn on/off the menu bar is a new feature in version 3.6.
    (Linux and OSX see: what happened to the file, edit and view menus? )
    Windows Method 1. Press and hold the key and press the letters of the following in this exact order: V T M
    Windows method 2 Press and release the button. The Menu bar is displayed; then choose ~ ~ red: V ~ ~ iew > ~ ~ red: T ~ ~ oolbars and click on ~ ~ Red: M ~ ~ enu Bar.
    The menu bar should now be displayed permanently, unless you turn it off again using view > toolbars. Check = not displayed, NO check mark is not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing

    Navigation, bar toolbar bookmarks and other toolbars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).

    To display the status bar, view, and then click status bar to place a check mark (display) or remove the check mark (not shown).

    Mode full screen
    http://KB.mozillazine.org/netbooks#Full_screen

    See also:
    Back and front toolbar buttons or others are missing
    Customize controls, buttons, and Firefox toolbars

  • How to create the application menu?

    Hello

    I want to add to the settings page for my application.

    I created the application menu in the Navigation pane.

    See my coding:

    NavigationPane {
        id: navigationPane
          Page {
                id: mainpage
                               Menu.definition: MenuDefinition {
                            actions: [
                        ActionItem {
                             title: "Action"
                                  imageSource: "asset:///images/setting.png"
    
                            onTriggered: {
    
                   navigationPane.push(settings.createObject())
                                                           }
                                   attachedObjects: [
                                  ComponentDefinition {
                                        id: settings
                                           source: "setting.qml"
                                 }
                             ]
                         }
                      ActionItem {
                                   title: "help"
                                        imageSource: "asset:///images/help.png"
                                    }
                           ]
                         }
                         titleBar: TitleBar {
                                   title: "Main Bar"
                                                        }
                                                  }
                                              }
    

    and on settings.qml

    Page {
                  id: settings
                   titleBar: TitleBar {
                          title: "Settings"
                }
                Container {
                    background: Color.Yellow
                    Label {
                     text: "Want [Dark or White] theme selet below"
                }
                  DropDown {
                    title: "Select Theme"
    
                    Option {
                         text: "Dark"
                                 onSelectedChanged: {
    
                              if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) {
                                          Application.themeSupport.setVisualStyle(VisualStyle.Dark);
                                      }
                                else {
                                     Application.themeSupport.setVisualStyle(VisualStyle.Bright);
                                          }
    
                                 }
                           }
    
                    Option {
                            text: "white"
                             selected: true
    
                                    onSelectedChanged: {
    
                                     if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) {
                                      Application.themeSupport.setVisualStyle(VisualStyle.Dark);
                                               } 
    
                                           }
    
                                        }
                                   }
                                }
                           }
    

    and I see not the menu look at this picture

    now, I want the solution please can someone help.

    -shaishad

    the definition of menu on the navigationpane

  • How to view the application menu in the app?

    Hi all

    Does anyone know how to view the application menu in the app?
    The ultimate effect is that when you see the user swipe down from the top of the screen, the menu of the application.

    Thank you very much.

    Please check the recent threads or duplicate search before posting questions: http://supportforums.blackberry.com/t5/Cascades-Development/Application-Menus/td-p/1785653

  • Move between Pages in the Application Menu

    I added an Application Menu, use the example of C++ from here: https://developer.blackberry.com/cascades/documentation/ui/navigation/menus.html

    // 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);
    

    Unfortunately the example wrong in how to edit a page by pressing action.

    Does anyone know how to do this?

    bool res = QObject::connect(actionOne, SIGNAL(triggered()), this, SLOT(handleAction1()));
         Q_ASSERT(res);
         Q_UNUSED(res);
    

    This method works.

  • Disable the application to save the file (was: to save)

    How to disable the application for registration of the file when you change the window?

    Direct switch to Design mode.  Live View mode needs to be refreshed every time to render the page after the changes.

  • "Send to..." 'Recipient' disable the context menu in Explorer for JPG does not or not broken.

    Problem on VISTA ULTIMATE 32.  I have all the latest patches. It's a laptop ASUS M70. Default email course is Windows Mail.

    In the Windows Photo Gallery, when I select a photo, then click on "messages" then that nothing happens.
    In Solution Explorer, select a JPG photo, and then I can either 1) click on "E-mail" or 2) via the context menu, select "send to" followed by "Recipient" and appears "attach files" box that allows me to resize the jpg file. If I want to, I can cancel it with success. However, if I select "join" then it shows "Preparing to send" and just hangs there.  If I cancel (after say 1 to 10 minutes), it hangs there doing nothing with the message «Cancel...» "indefinitely.    If I cancel the application "attach files" in the Task Manager, it lowers the Explorer.

    What is going on? What I want to do is ' send to ' 'recipient' some resizing photos (via the context menu in the Explorer). There is no problem to send other files e.g. *.mp3.

    I just noticed that (even if an instance of "Attach files" is 'preparing to send' or 'Cancel') it will work properly if I do not resize. In other words, if I want to send the original size. While so-called to resize JPG? Is it an idea to my problem?

    Hi MikeW404,

    As it works fine in safe mode then there could be some third party software installed on the computer are contradictory in normal mode, I would say that you clean the clean boot procedure and check.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Perform the check and the clean boot if you have the problem.
    1. click on Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    2. in the general tab, click Selective startup.
    3. under Selective startup, clear the Load Startup items check box.
    4. click on the Services tab, select the hide all Microsoft Services check box, and then click disable all.
    5. click on OK.
    6. When you are prompted, click restart.
    7. after the computer starts, check if the problem is resolved.

    If the problem is resolved to check what is the cause of the problem, referring to the link given below:
    http://support.Microsoft.com/kb/929135
    Reset the computer to start as usual
    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    Click Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click continue.
    On the general tab, click the Normal startup option, and then click OK.
    When you are prompted to restart the computer, click restart.

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ring personalized photo: disable the context menu

    I ring personalized photo - classic controls those - and they work very well when you click on the increment and decrement, however by clicking anywhere on the image causes a little popup to appear - as the ring menu control - which shows all the images. I would like to disable this during execution; How do I?

    IM on Labview 8.6

    Hi, Faust,.

    It's just a photo of ring with a decoration on top, but you can go...

    Only, I put the inner transparent area and left border decoration in black, so you can actually see the decoration...

  • Beta 3: call the application menu NavigationPane

    Now we can define menus of applications of Cascades in Beta 3, I tried to find how we can call all windows in a SettingsActionItem.

    I have a pane with tabs with a declared MenuDefination. I want to call a QML file that is a NavigationPane that contains the list of parameters. I have tried to seem so all documentation and sample applications and do not see the right way to do this. It would be nice to have a applications examples with an application menu that calls a settings screen.

    Can anyone help or recommend best practices for this?

    Thanks in advance.

    Ok. I managed to do the work.

    hand. QML

    import bb.cascades 1.0
    
    TabbedPane {
        showTabsOnActionBar: true
    
         Menu.definition: MenuDefinition {
            helpAction: HelpActionItem {
                imageSource: "asset:///icons/help.png"
            }
            settingsAction: SettingsActionItem {
                imageSource: "asset:///icons/setting.png"
                onTriggered : {
                   settingsSheet.open()
                }
            }
            actions: [
                ActionItem {
                    title: "Info"
                    imageSource: "asset:///icons/info.png"
                }
            ]
        } 
    
        attachedObjects: [
           Sheet {
               id: settingsSheet
               objectName: "settingsSheet"
               content: SettingsSheet {
                   id: settingsContent
               }
           }
       ]
    
        Tab {
            title: qsTr("Tab 1")
            Page {
                id: tab1
                Container {
                    Label {
                        text: qsTr("Tab 1 title")
                    }
                }
            }
        }
        Tab {
            title: qsTr("Tab 2")
            Page {
                id: tab2
                Container {
                     Label {
                        text: qsTr("Tab 2 title")
                    }
                }
            }
        }
        Tab {
            title: qsTr("Tab 3")
            Page {
                id: tab3
                Container {
                    Label {
                        text: qsTr("Tab 3 title")
                    }
                }
            }
        }
        onCreationCompleted: {
            OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
        }
    }
    

    SettingsSheet.qml

    import bb.cascades 1.0
    
    NavigationPane {
        Page {
            Container {
                Label {
                    text: "Settings Page"
                }
            }
        }
    }
    
  • How to add the application menu

    Hi guys, I want to add a menu to the application. I can not get the menu.

    I just tried to add the menu for the lettering of calendar and I can't get any code, what could be the problem

    public class Main extends Application
    {
        Main()
        {
    
           MyMenuItem myMenuitem = new MyMenuItem(0);
           ApplicationMenuItemRepository.getInstance().addMenuItem( ApplicationMenuItemRepository.MENUITEM_CALENDAR,myMenuitem);
    
        }
        public static void main(String arg[])
        {
            Main m=new Main();
            m.enterEventDispatcher();
        }
    
    }
    
    class MyMenuItem extends ApplicationMenuItem{
    
        //using the default constructors here.
        MyMenuItem(int order){
            super(order);
        }
    
        //methods we must implement
        //Run is called when the menuItem is invoked
        public Object run(Object context){
            //context object should be a email message
            if (context instanceof Message){
                Message message = (Message)context;
                //this is where we would work the message
              //do something here
            }
            return context;
        }
    
        //toString should return the string we want to
        //use as the lable of the menuItem
        public String toString(){
            return "MyMenu Name";
        }
    }
    

    Hi I don't get menus. Where would be the problem? And I used the (4.7.0) storm Simulator

    Concerning

    Rakesh Shankar.P

    If you want to launch your application, you can use ApplicationManager to achieve

  • How to disable the Application Transport Security (ATS) in the Adobe AIR application?

    Hi all

    How do disable us ATS in Adobe AIR app for the application to run on iOS 9? I am getting error then tried to launch the adobe air below test application:

    iPhone-6 AdobeAirPluginTest [520] < error >: App Transport Security has blocked a clear text HTTP (http://) load of resources because it is not secure. Temporary derogations can be configured by your application's Info.plist file.

    Is it possible to disable the indicator of the ATS in Adobe AIR or that we will succeed in Xcode?

    AIR allows to add some things in the info.plist file, if you are looking for the syntax required to add an exception. He would go in your tag in your application descriptor file.

  • Fusion 4.0.2: Disable the Mac menu bar and toolbar

    Hello

    I just had fusion 4 and upgraded to 4.0.2. This is the German version of it.

    1.) now I use especially in mode full-screen. When in full screen, there is this small black toolbar of fusion, who owns the 3 buttons on the main menu. In fact when I searched for a way to hide this bar, I came across the menu point to hide toolbar (on the internet) that should be in "view." But under view I have not this question... is this a bug in the German version or is simply not there, or maybe I'm just too blind to find it elsewhere. My display menu includes only the following elements:

    -single window

    -l' unit

    -full screen

    -See the taskarea in unity mode

    -show infoarea in unity mode

    -peripheral use of full screen

    -See the symbolbar

    -adjust the symbolbar

    Any ideas how to remove this little black bar?

    2.) is another thing in fullscren (and I've never had this behavior with fusion 3): when you point at the top with my mouse cursor, the mac menu bar will show and steal the objective. It's very annoying. Is it possible to prevent this behavior in fusion 4? I not found any answors on this topic on the net...

    Any help is very appreciated.

    Thanks in advance!

    Greetings

    Mario

    It's really weird, you can download the plMainMenu.nib in Applications/VMware Fusion.app\Contents\Resources\German.lproj\, please compress like a zip before downloading.

    And please try swith in the region by the British and the United States and see if the menu is fine.

  • How to disable the icon menu iin Forms 6i

    Hello world
    I would like to know how can I disable the menu of the icon in forms 6i, who appears every time that you run a form that has all the icons associated with the backup, the exit, then save, etc.

    Thanks in advance!

    The default menu is by DEFAULT & SMARTBAR (Module of Menu module-level property). If you remove SMARTBAR, you will have no smartbar at all.

    Published by: InoL on March 31, 2011 11:55

Maybe you are looking for

  • Bookmarks and empty playlist after upgrade

    I just found out that bookmarks and the playlist on my phone are empty since the upgrade to iOS 10. They are on my iPad, which has also been improved. Under settings > Safari iCloud is turned on. Help appreciated. Thank you

  • can not recharge the iPhone through MacBook in mode 'sleep'

    I used to be able to plug my iPhone 6 on my MacBook Pro from one day to the next and it would be both sync and charge with the MacBook into sleep mode. I recently bought a new MacBook Air, and as a first step, the phone has continued to charge when p

  • Satellite C660 - what is VEN_8086 & DEV_3B56?

    PCI\VEN_8086 & DEV_3B56 & SUBSYS_FD3C1179 & REV_05\3 & 115 83659 & 0 & D8 What is it?

  • How to update BIOS for Portege 7200

    Is someone out there to have a procedure to update the bios of a Portege 7200CT without the docking station. Toshiba posted a procedure in its newsletter, but it does not explain how to do the update without the docking station. As everyone knows tha

  • Windows LIve Mail can't connect to the server

    I tried to configure Windows Live Mail, after that I discovered that Windows 7 does more support OUTLOOK EXPRESS. I don't like the program initially and amazes me that MS provides no living person to help with Windows Live Mail problems. It took seve