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
Super Contributor
Posts: 398
Registered: ‎01-12-2011
My Device: Q10
My Carrier: Fido

Pop a screen in C++ (not QML)

[ Edited ]

Hi,

 

I'm only starting to get into BB10 programming, and I have a simple question.

 

How can I pop a page programmatically? The only example I've seen in the forums was in the QML file.

 

Thank you!

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Pop a screen in C++ (not QML)

Super Contributor
Posts: 398
Registered: ‎01-12-2011
My Device: Q10
My Carrier: Fido

Re: Pop a screen in C++ (not QML)

Thank for your reply, how do I get my NavigationPane object? My current screen is of type bb::cascades::CustomControl.
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Pop a screen in C++ (not QML)

Super Contributor
Posts: 398
Registered: ‎01-12-2011
My Device: Q10
My Carrier: Fido

Re: Pop a screen in C++ (not QML)

[ Edited ]
 
Super Contributor
Posts: 398
Registered: ‎01-12-2011
My Device: Q10
My Carrier: Fido

Re: Pop a screen in C++ (not QML)

[ Edited ]

I finally noticed that my main screen does in fact contain a NavigationPane. My question now is, if I push a screen from my main screen, and I click a button on that new screen, how do I push another screen below that one? Is it the new screen that does the pushing or the main screen? Also from screens below the main screen, how does popscreen() work?? How do I access the mainscreen's NavigationPane from a subscreen in order for this subscreen to pop itself???

 

This is all alien to me, I'm used to modal screens and screens being able to pop themselves.