×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Question Problem in UI class???

    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 );
      
     }
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Re: Problem in UI class???

    hi everybody, now i m still there plz anybody suggest me regarding my problem........
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    104

    Re: Problem in UI class???

    You mixed View and Container architecture. Please use wizard to generate new project with View architecture with 2 Views and add more Views in the same way.

    br

Similar Threads

  1. External Linking Error (Undefined Symbol)
    By nile_mail in forum Symbian
    Replies: 2
    Last Post: 2008-08-05, 13:10
  2. Linking Error(Undefined Symbol)
    By nile_mail in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 10
    Last Post: 2008-03-26, 23:32
  3. need information about j2me polish
    By rathikathangaraj in forum Mobile Java General
    Replies: 4
    Last Post: 2007-12-19, 09:01
  4. Replies: 0
    Last Post: 2003-12-15, 11:32
  5. Problem deriving a class from CAknForm
    By T_N_Shetty@yahoo.com in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-07-05, 07:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×