×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    57

    multipage dialog navigation problem

    Hi everybody,
    I want to add 2 setting pages to my S60 application. I tried to implement a simple multipage dialog with two pages but when I ran it, the first page was displayed but I couldn't move to the second page. Pressing the arrow keys did nothing.
    I couldn't find working example and I searched the forums but all examples were of the rss file and not the code itself. I'm not sure how to solve this problem. does anyone have a solution? Should I override OfferKeyEventL and use CAknTabGroup?

    Thanks
    Imzadi

  2. #2
    Regular Contributor
    Join Date
    Jun 2006
    Location
    Novosibirsk, Russia
    Posts
    63

    Re: multipage dialog navigation problem

    yes, you have to provide tab switching by your self via overriding that (not only) methods
    -electrique

  3. #3
    Regular Contributor
    Join Date
    Jun 2006
    Location
    Novosibirsk, Russia
    Posts
    63

    Re: multipage dialog navigation problem

    if you are using msvc, try out that master:
    right click on your project in solution explorer, then add -> add class -> new symbian os class -> s60 view + container

    that will insert some cpp/h files in your project, whatever you need to correct them a bit too
    -electrique

  4. #4
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Oulu, Finland
    Posts
    52

    Re: multipage dialog navigation problem

    Actually, I don't think you need to handle key presses by yourself if you use dialog or view architecture. I just tried the dialog out and mine works just fine without key capturing. I'd be interested how you'll get CAknTabGroup out of the dialog. I'm trying to dynamically create and delete tab pages in a dialog but haven't been able to do so yet.

  5. #5
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    57

    Re: multipage dialog navigation problem

    Hi guys and thank for your answers,

    electrique, can you please provide an example or list the other methods I need to override? I'll be glad to try it. BTW, I'm using carbide.c++ express (Still waiting to the pro version).
    JammuK, I use the following code to load the navigation pane with my TAB_GROUP resource. Hope it helps.

    Imzadi

    Code:
    void CMyMobileS60AppUi::LoadNavigationPane()
    {
        TUid naviPaneUid;
        naviPaneUid.iUid = EEikStatusPaneUidNavi;
        CEikStatusPane* statusPane = StatusPane();
        
        CEikStatusPaneBase::TPaneCapabilities subPane = statusPane->PaneCapabilities(naviPaneUid);
        
        // if we can access the navigation pane
        if (subPane.IsPresent() && subPane.IsAppOwned())
        	{
        	CAknNavigationControlContainer* naviPane = (CAknNavigationControlContainer *) statusPane->ControlL(naviPaneUid);
        	// read the tab group resource
        	TResourceReader reader;
        	iCoeEnv->CreateResourceReaderLC(reader, R_MYMOBILES60_TABGROUP);
        	
        	if (iNaviDecorator)
                 {
                 delete iNaviDecorator;
                 iNaviDecorator = NULL;
                 }
    		
    		// set the navigation pane tab group, ownership is transferred to us here
           iNaviDecorator = naviPane->CreateTabGroupL(reader);
           CleanupStack::PopAndDestroy(); // pushed by CreateResourceReaderLC
           naviPane->PushL(*iNaviDecorator); // draws the navigation pane
    		    	
        	CAknTabGroup* tabGroup = (CAknTabGroup*) iNaviDecorator->DecoratedControl();
    		if ( tabGroup )
    		{
    	    	     tabGroup->SetObserver(this);
    		} 
        	}
    }

Similar Threads

  1. Multipage dialog in s60
    By ranux in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-04-22, 08:15
  2. creating selection listbox in multipage dialog
    By meetee in forum Symbian User Interface
    Replies: 10
    Last Post: 2006-08-04, 16:15
  3. Problem with Navigation icon.
    By khurshed79 in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-10-03, 04:04
  4. file dialog selection problem
    By bojkar in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-09-05, 13:31
  5. Listbox in multipage dialog
    By djgtram in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-02-13, 18:40

Posting Permissions

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