hi everybody,
I m developing an application in which three views and two listbox for two views. I have a problem in ConstructL() of appui class.When i add container object in stack through AddToStackL() softkeys doesn't work, i mean when user wants to navigate to next view(using tab) it doesn't work... here is my code:
HTML Code:void CMyApplicationAppUi::ConstructL() { BaseConstructL(); // Show tabs for main views from resources CEikStatusPane* sp = StatusPane(); // Fetch pointer to the default navi pane control iNaviPane = (CAknNavigationControlContainer*)sp->ControlL( TUid::Uid(EEikStatusPaneUidNavi)); // Tabgroup has been read from resource and it were pushed to the navi pane. // Get pointer to the navigation decorator with the ResourceDecorator() function. // Application owns the decorator and it has responsibility to delete the object. iDecoratedTabGroup = iNaviPane->ResourceDecorator(); if (iDecoratedTabGroup) { iTabGroup = (CAknTabGroup*) iDecoratedTabGroup->DecoratedControl(); } iRejectallView = CKeeedaRejectallView::NewL(); AddViewL(iRejectallView); // transfer ownership iEngine = CKeeedaPhoneBkEngine::NewL(); CKeeedaHateuView* view1 = new (ELeave) CKeeedaHateuView(*iEngine); CleanupStack::PushL( view1 ); view1->ConstructL(); AddViewL(view1); CleanupStack::Pop(view1); // view1 iFreakoutView = CKeeedaFreakoutView::NewL(); AddViewL(iFreakoutView); // transfer ownership SetDefaultViewL(*iRejectallView); iAppView = CKeeedaAppView::NewL(ClientRect()); iAppView->SetMopParent(this); AddToStackL(iAppView); iAppContainer = CKeeedaFreakoutContainer::NewL( ClientRect(), GetDocument() ); iAppContainer->SetMopParent( this ); AddToStackL( iAppContainer ); }


Reply With Quote

