Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
Posts: 114
Registered: ‎05-09-2013
My Device: BB10 Z10
My Carrier: Virgin
Accepted Solution

Pushing pages onto tabbedPane pages

Hello,

 

I have the following setup:

 

TabbedPane {
    id: tabbedPane

    Tab {
        id: tabMembers
        title: qsTr("Members")
        Page1Members {

        }
        imageSource: "asset:///images/Members.png"
    }
    Tab {
        id: tabUser
        description: qsTr("Member info")
        Page2User {
            id: pUser
        }
        imageSource: "asset:///images/User.png"
    }
...

How do I PUSH pages in tabbed pages (Page1Members, Page2User) ? I need a NavigationPane to be able to push pages, but I don't think my tabbed pages can be navigation panes...

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Pushing pages onto tabbedPane pages


Mitch99 wrote:
I need a NavigationPane to be able to push pages, but I don't think my tabbed pages can be navigation panes...

Yes, they can be. Note the class hierarchy and the class involve. A TabbedPane holds Tabs, which can hold any AbstractPane subclass. That AbstractPane's subclasses are NavigationPane, Page, and TabbedPane.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Pushing pages onto tabbedPane pages

you can put a navigationpane into a tab just fine.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Trusted Contributor
Posts: 114
Registered: ‎05-09-2013
My Device: BB10 Z10
My Carrier: Virgin

Re: Pushing pages onto tabbedPane pages

Ah, yes, ok... I was referencing something out of the scope and panicked