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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
nico411
Posts: 34
Registered: ‎12-20-2010
My Carrier: Orange

Problem NavigationPane within TabbedPane

Hello,

 

The application I am working on is a BB10 cascade.

I have a question about my architecture which is a TabbedPane, with, inside earch Tab, NavigationPanes.

I create everything from C++ like this :

 

// TabbedPane creation

TabbedPane *tabbedPane = TabbedPane::create();

tabbedPane->setShowTabsOnActionBar(true);

 

// Home tab

NavigationPane *homeNavigationPane = NavigationPane::create();

MTHomePage *homePage = new MTHomePage(homeNavigationPane);

homeNavigationPane->push(homePage->getPage());

 

Tab *homeTab = Tab::create();

homeTab->setTitle(Application::instance()->translate("App", "homeTab"));

homeTab->setContent(homeNavigationPane);

tabbedPane->add(homeTab);

 

// Search tab

NavigationPane *searchNavigationPane = NavigationPane::create();

MTSearchPage *searchPage = new MTSearchPage(searchNavigationPane);

searchNavigationPane->push(searchPage->getPage());

 

Tab *searchTab = Tab::create();

searchTab->setTitle(Application::instance()->translate("App", "searchTab"));

searchTab->setContent(searchNavigationPane);

tabbedPane->add(searchTab);

 

The problem is that, when I select the second Tab, I have this "push" animation as if my Search screen was pushed in a NavigationPane. I don't want this animation, I just want my Page to be displayed normally.

 

Any idea ?

 

Thank you

Please use plain text.
Developer
raj_jyani
Posts: 100
Registered: ‎05-11-2011
My Carrier: AirTel

Re: Problem NavigationPane within TabbedPane

Hi,

 

You can disable implicite animation .

 

 

hope this link helps you.

https://developer.blackberry.com/cascades/documentation/ui/animations/implicit_animations.html

Please use plain text.
Contributor
nico411
Posts: 34
Registered: ‎12-20-2010
My Carrier: Orange

Re: Problem NavigationPane within TabbedPane

Hello,

 

Thank you for your suggestion.

I tried to use ImplicitAnimationController but didn't seem to work.

I will keep on trying and let you know.

Please use plain text.