Navigation pane: gesture of slide and corn pages

I use the NavigationPane to manage the transiction from one application Page to the other.

I have two questions for you:

(1) I would like to know if it is possible to disable the gesture of slide to "pop" or close the Page by dragging it from left to right.

(2) it would be nice also to avoid the "pop" of the image when the gesture of the slide is active and I slide to a left-hand page. If I want to go back to the page on the right, I need to push it again in the Navigation pane. Is it possible to avoid this? For example, if I have a 3 page I go to the right page and then back to left pages no matter how many times I do it. How can I achieve this?

Thanks in advance

There's no reason you can't have a launch a thumb to the back of the image or for that matter have a "Forward" ActionItem, both are possible.

Allows you to recognize the signal OnTouch (unfortunately it is not GestureHandler for it yet) and push the page when the shot is from right to left.

Why do you want to avoid the pop?
I understand you not wanting to destroy the page and keep in memory for faster loading, but there is little to gain from popping is not page, does that remove the battery of the navigationPane. Push and popping of pages has little impact on the effectiveness, it is actually adding or deleting a pointer to a list.

If I were you I would implement some sort of caching so that as you walk in both directions between the pages you keep say 5 in memory with two part and the other the power of images and destroy the rest outside of this cache. When you move one way or the other you asynchronously create page two pages far in this direction. In this way, reduce you the memory requirements and keep speed high.

Tags: BlackBerry Developers

Similar Questions

  • I imported the files as a GIFT. The quiz now has a navigation bar with a slider and a counter in the upper left corner of the screen. How can I remove it?

    CPNavBar.JPG

    Who is always there when you preview. Is not there at the time of publication.

  • Can I turn off the navigation pane in the HTML help permanently?

    My company has a web application on the MicroStrategy platform.

    I created a WebHelp customized to replace the out of the box using MicroStrategy and which works very well.

    We develop the MicroStrategy Office add-in for Excel for our customers.

    Once installed, a CHM file is copied to the client's hard drive.

    We want to replace this with our own custom help.

    I created a CHM file with a subject that redirects clients to our WebHelp customzied with content for the add-in.

    One of the subjects has a redirect in the header HTML following code:

    < meta http-equiv = "refresh" content = "0; URL =https://customhelp.htm#AddIn_Introduction.htm"/ > "

    That works very well in my tests.

    Here's my problem...

    The HTML Help Viewer opens and hides the Navigation pane and displays the WebHelp (navigation pane, the menu bar and topic pane) automatically.

    But, the HTML Help Viewer still has the hide/show/hide button for HTML Help navigation pane.

    Is it possible to disable this hide or let it stand, but turn off the navigation pane?

    As always, any help would be appreciated.

    Thank you-

    Michael F Weart

    You should be able to disable in the settings of the window. Make sure that you uncheck the boxes search and Glossary before you uncheck the Index checkbox & OCD. (My quick test seemed to honor these settings, even when they are grey)

  • Page 1 Page 2 without the navigation pane? (change cancel button)

    Hello..

    as the topic already explained

    How I click key 1 for example and it will again go page 2 without the navigation pane

    If I want to go back to page 1, simply click the Cancel button

    all of this sample code? Thank you

    Hi, I assume that https://developer.blackberry.com/native/reference/cascades/bb__cascades__qmlcontroldelegate.html is your choice.

    There is also an example provided by the developer of bb10 3rd part: http://www.hrbuckley.net/2014/05/segmented-control-option-change.html

  • Push a page of .qml using C++ defines the Navigation pane.

    If I have a navigation pane, as defined in C++...

    nav =  qml->createRootObject();
    

    How to push a page called page.qml? The only documentation I can find is to build the C++ page, that I don't intend to do. The purpose of the Page doesn't seem to have a constructor that takes a file as input qml Page, so I don't know how to create a Page object to him, pushing with the NavigationPane function-> push(Page*).

    First, you must load the qml file and create the object on the page of the qml. Then push the page in the navigation pane.

    This code can help you!

    NavigationPane *nav_pane = new NavigationPane;
    
    QmlDocument *qml = QmlDocument::create("asset:///MyListView.qml").parent(this);
    Page *new_page = qml->createRootObject();
    nav_pane->push(new_page);
    app->setScene(nav_pane);
    

    -Looks

    Riadh

  • Should what message I to listen to know when a page is in jumps from the navigation pane

    Hello

    Is there a signal on the level of the page that will tell me when a page is in jumps from the navigation pane.  I wish I could stop some it is made on the page when he jumped and no longer in background processing mode.

    Where would I best handle this? I know that there is an onPopTransitionEnded on the navigation pane, but I would prefer to deal with in the qml file if possible...

    Thank you

    You can use the property on the page and Cisse inside the onPushTransitionEnded / onPopTransitionEnded
    For example:

    Page{
        property bool isActive: false
        onIsActiveChanged:{
            If (isActive){
                // start processing
            }else{
                // stop processing
            }
        }
        ....
    }
    

    And

    onPushTransitionEnded: page.isActive = trueonPopTransitionEnded: page.isActive = false
    
  • Navigation pane in WL Photo Gallery is missing and I'm stuck in place

    I lost the navigation pane in the WLPhoto Gallery and I can't "build a case" or reverse my steps in the hierarchy of folders at all.  The 1st, 2nd and 3rd time it happened I've finally returned to normal by doing a system restore.  The fourth is time... no luck.  I'm stuck in a particular matter until I have download more pictures and then I'm stuck there.  It drives me absolutely crazy.  I had these recovery disks with Windows experience, but I have no idea if this will help.  Any suggestions?

    Point your Cruiser completely on the left wall and a blue vertical line appears with a small Triangle in the middle.

    Click on the small triangle and the Navigation pane will reappear.

  • Navigation pane: how to hide in a single folder and show in another at the same time?

    I have Windows 7 with the latest updates of downloadale. I need to have some application folders containg icons in a folder without the navigation pane, while having others with the pane. If I hide the pane in a folder, it is applied to all the ohters. I have tried all possible information available (property, notice, put on the page...) without success.

    Hello

    I wish to inform you that it is not possible to do this with a single folder. The navigation pane settings will affect all the files in Windows Explorer.

  • Hi, my navigation bar does not work and only the white pages are displayed

    Hi, my navigation bar does not work and that white pages are displayed - I watched the debate and made sure that each page is checked on "Export Page"; I checked that all pages are included with hyperlink. I deleted everything and started a new navigation bar; I have created a new site and started from scratch... nothing seems to work!

    It does not appear in the preview IE. I created 4 pages and when you perform a navigation bar, the title of the pages appears but when I saw and click one of the links, I get a full blank page with no navigation bar. What I am doing wrong? He worked for a time perfectly, but no more.

    Also, is it possible to manually check the links to see where I am redirected to?

    Thanks for sharing the file with me. Everything looks fine when I checked your file on my machine.

    Clear the browser cookies could solve the problem as default browser preview Muse use to render the pages.

    Kind regards

    Vivek

  • I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?

    I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?   using DreamWeaver CC

    Among the contributors here has a nice page explaining how to do what you want, using css.

    Indicator of persisting in the Menus - Page http://alt-web.com/

  • Windows Explorer expands inappropriate files, the folder that develop you to the bottom of the jump navigation pane

    When you use a left-hand Navigation pane, if there is enough of folders in the navigation pane as you have a vertical scroll bar, if you click on a folder with the mouse (to see supported in the right pane), and then expand the folder (either by clicking on the symbol + or with the arrow key) , then the left pane automatically scrolls upward as far as possible such as the folder you expanded is yet in sight at the bottom of the pane. This command deletes the folder under the mouse, where it should stay.

    This is certainly a bug, as it only happens the first time you try to extend a record of the way. After having done it once, you can scroll the navigation (left) pane so that the file in question is back in the middle of the pane, and it will expand and contract as expected, remaining under the mouse.

    Because many people seem interested in this question, I'll post some info about my recent contact with Microsoft about this issue.

    It seems that everywhere where this issue has been spoken, all someone would get to a Microsoft employee was a response to "Thank you for your comments" mat. Never the validity of the issue has been discussed or even acknowledged. I decided to write an e-mail to the responsible man, Steve Ballmer, clearly the problem with links to a procedure step by step problem, this discussion and report bug with 220 votes (at the time). I realized that Steve would never read himself, but I thought that his email should get automatically transferred to a person who can actually read.
    Two days later I received an email from a specialist in defense of Microsoft saying a "case of grace" was created and the escalation of Windows team should get in touch with me. The next day, an engineer of the climbing sent ask when would be the right time to talk about issues on the phone. So it would be quite clear with what I was talking about, I've recorded a screencast walking through that was precisely the problem.
    Edit: I made a video more condensed showing the "record jump bug", see here.
    This has resulted in our discussions:
    1. engineers are aware of this problem.
    2. they may, or may not provide a fix for it.
    Nothing revolutionary, but it's a little more push in the right direction. In my opinion, post in this thread on the problem has practically no value. I suggest you:
    1 vote upward and commenting on the bug here:
    He said that the site is being monitored by the dev team.
    2. writing intelligent and without rudeness complaints that mention how the bug affects negatively your workflow file management every day. Send these to the top of the food chain of Microsoft until you get an answer. You are a paying customer and you deserve to be heard.
    I'm tired of dealing with him, so now use XYplorer when you perform heavy file management. It stings to have to pay for a decent file manager, but that's life. If this question bothers you at all, please comment and vote on the bugand write an email.
    13/09/11 PATCH: Bug is still present in Windows 8 Developer Preview, see here.
    01/30/12 UPDATE: Finally, we have a public recognition that this is actually a bug that needs to be addressed, and it will be apparently fixed in Windows 8 beta coming. It's good news, but I know I'll use Win7 for at least a year or two, as will be much, much more. We deserve a patch for this problem in Win7. Until that happens, keep Microsoft listening to this topic.
    FINAL THOUGHTS: It is a real bug with 645
    ! votes on their feedback page, however MS didn't intend to fix for Windows 7 users. The bug is fixed in Windows 8, which means nothing to many of us who do not intend to upgrade. If this bug really gets under the skin, I suggest to install the classic interface, which has been recommended several times in this thread. You can choose to install only the feature "Classic Explorer" which corrects this bug among others and even remember the old UI for copy of file which is so nice to have in return. I used it for many months now without worries.
    In addition, for those of you who think that they find a solution to this problem by changing just a few parameters options somewhere... Thank you for your desire to help each of us, but you do not have the same problem and please do not post here your 'solution '. If you read some of the 29 pages of this thread, you will see that all the imaginable solutions has been suggested. There is a bug in the browser itself. If you are using Windows 7 and plan to continue using it, your options are 1) use the classic interface, or 2) use a third-party files, such as XYplorermanagement tool. If you stumble across this thread because you noticed this bug, please vote for the bugand make 1 or 2.
  • Navigate from a to an other navigation pane navigation pane

    Hi all

    In the navigation pane, we can spread one component to the next.

    But what happens if I want to navigate from a navigation to another part of the navigation pane.

    for example: -.

    hand. QML: -.

     ActionItem {
                    title: qsTr ("ReadFromSD")
                    imageSource: "asset:///images/action_addcontact.png"
                    ActionBar.placement: ActionBarPlacement.OnBar
    
                    onTriggered: {
                        if (_addressBook.detectSD()) {
                            var page = secondPageDefinition.createObject();
                            navigationPane.push(page);
                        }
                    }
                }
    

    and the second page definition is like: -.

     ComponentDefinition {
                id: secondPageDefinition
                source: "filePicker.qml"
                Page {
                    Container {
    
                    }
                            paneProperties: NavigationPaneProperties {
                                backButton: ActionItem {
                                    title: "Back"
                                    onTriggered: {
                                        /*username.text = "";
                                        password.text = "";*/
                                        navigationPane.pop();
                                    }
                                }
                            }
                        }
            }
    

    The problem that is happening, is that the flow is not the trigger from one component to the other:

    NavigationPane {
        id: navigationPaneFilePicker
    
        onPopTransitionEnded: page.destroy()
    
        Page {
            titleBar: TitleBar {
                title: qsTr ("Select contacts File")
            }
    
            Container {
                layout: DockLayout {}
    
                // The background image
                ImageView {
                    horizontalAlignment: HorizontalAlignment.Fill
                    verticalAlignment: VerticalAlignment.Fill
    
                    imageSource: "asset:///images/background.png"
                }
                FilepickerScrollView {
    
                    Container {
                        horizontalAlignment: HorizontalAlignment.Fill
                        verticalAlignment: VerticalAlignment.Fill
    
    ................................................
    ...............................................
    

    When I click the first page its not sailing does not to the second. When the second does not have the navigation pane it worked correctly, but as soon as I added the tag in navigation pane to it it stopped working

    Please suggest

    The element root firstPage.qml and secondPage.qml doesn't have to be a NavigationPane but a page element. You already have a navigationPane in your hierarchy of context and as a result, you can refer to your main QML file NavigationPane directly.

    For example:

    hand. QML:

    include bb.cascades 1.3
    
    NavigationPane {
      id: root
      Container {
        Button {
          text: "Push the first pane"
          onClicked: {
        var first = firstPane.createObject();
        root.push(first);
          }
        }
      }
      attachedObjects: ComponentDefinition {
        id: firstPane
        source: "firstPage.qml"
      }
    }
    

    firstPage.qml

       include bb.cascades 1.3
    
        id: navigationPane
    
        // The initial page
        Page {
            content: Container {
                Button {
                    text: "Display First Page"
    
                    onClicked: {
                        var second= secondPage.createObject();
                // Use the navigationPane defined in main.qml
                        root.push(second); //pushes the defined component definition (first)
                    }
                }
            } // end of Container
    
          attachedObjects: [
            ComponentDefinition {
                id: secondPage
                source: "place the asset filepath to your secondPageQML here"
            }
        ] // end of attachedObjects list
       } // end of Page
    
  • Multi level navigation pane

    Is it possible to have 3 navigation pane?

    as page 1, it has the navigation pane

    I push page 2

    then I push on page 2, page 3 in the navigation pane.

    page 3 back button, it goes to page 2, and then on the back, he goes to page 1?

    I wrote the wrong qml, I defined page above the container... and now it works.

  • On the Navigation pane

    Hello

    in my application consists of four different pages, so the navigation must occur one after another by clicking on the buttons in the navigation pane used pirticular page.i, using this I am able to navigate to the next page, after that how can I move to another page.

    Thank you.

    When the page is pushed into the NavigationPane, the NavigationPane becomes its parent.

    It can be accessed like this:

    SecondPage.qml

    Page
    {
      id: secondPage
    
      ...
    
      secondPage.parent.push(thirdPage) // secondPage.parent is Page's NavigationPane
    }
    

    ThirdPage.qml

    Page
    {
      id: thirdPage
    
      ...
    
      thirdPage.parent.push(fourthPage)
    }
    

    etc.

    Also, you can access items in the hierarchy by their id-s even between QML files. Thus, a reference to the NavigationPane directly by id probably will also work. It will work in some cases, for example if there are the ListViews in the hierarchy. I like the previous approach, because the pages will be autonomous and they can be easily rearranged.

  • SQLite query on error in Navigation pane

    I have a Navigation pane with the first page displays a list of items to a SQLite database and pushes the item_id and nom_element on the second page.

    NavigationPane {
        id: navig
        backButtonsVisible: false  
    
    Page {
        Container {
    ListView {
            id: myListView
            dataModel: dataModel
    
            listItemComponents: [
                ListItemComponent {
                    type: "item"
    
                   StandardListItem {
                        title: ListItemData.item_name
                    }
                }
                ]
            onTriggered: {
                var itemSelected = dataModel.data(indexPath)
                var secondpage = secondPage.createObject();
                secondpage.itemId = itemSelected.item_id
                secondpage.itemName = itemSelected.item_name
                navig.push(secondpage)
            }
        } // end of ListView
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel
                grouping: ItemGrouping.None
            },
            DataSource {
                id: dataSource
    
                source: "sql/items.db"
                query: "select * from item order by item_id desc"
    
                onDataLoaded: {
                    dataModel.insertList(data);
                }
            } end of DataSource
    
            ]
    
            onCreationCompleted: {
                dataSource.load();
            }
    }
        attachedObjects: [
            ComponentDefinition {
                id: secondPage
                source: "secondPage.qml"
            }
        ]
    }
        onPopTransitionEnded: {
             page.destroy();
        }
    }
    

    The second page is similar to the first page, but it shows a list of subitems from another table in the same database using the item_id. The item_id and nom_element are called in the second page here:

    property int itemId
    property string itemName
    

    and inside the data source, I have the following query:

    DataSource {
                        id: contentSource
                        source: "sql/items.db"
                        query: "select * from subItems where item_id = "+itemId
                        onDataLoaded: {
                            contentList.insertList(data);
                        }
                    }
    

    But the query does not return any value.

    But it returns the correct output for:

    query: "select * from subItems"
    
    query: "select * from items"
    

    I am also able to output the itemId value with:

    label {
          text: itemId
    }
    

    I tried to remove the data source query and adding

    onItemIdChanged: {
      contentSource.query = "select * from subItems where item_id = "+itemId
      contentSource.load();
    
    }
    

    at the end of the page. It does not work.

    onItemIdChanged: {
      contentSource.query = "select * from subItems where item_id = "+itemId
      contentSource.load();
    
    }
    

    This method works. Don't know why I don't understand well when I tried the first time

Maybe you are looking for