×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    39

    Question create navigation pane??

    Hi All,

    I want to create navigation pane. Is there any reference example?
    I m using sdk 3.0.

    We can directly use CAknNavigationControlContainer* iNaviPane or we have to use CEikStatusPane* sp = StatusPane();?

    Any pointers??

    regards

    Meetee

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    39

    Re: create navigation pane??

    Hi,
    I tried with following code:
    //In UI.h

    class CnavitabAppUi : public CAknAppUi
    {...}

    //In Ui.cpp

    void CnavitabAppUi::ConstructL()
    {
    // Initialise app UI with standard value.
    BaseConstructL();

    CEikStatusPane* sp = StatusPane();
    CAknNavigationControlContainer* iNaviPane;
    iNaviPane = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)); //Error
    iNaviPane->SetContainerWindowL(*this);
    TResourceReader reader;
    CEikonEnv::Static()->CreateResourceReaderLC(reader, R_MYVIEW_STATUS_PANE);
    iNaviPane->ConstructFromResourceL(reader);
    iNaviPane->ActivateL();
    iNaviPane->MakeVisible(ETrue);
    iNaviPane->SetFocus(ETrue);
    iNaviPane->DrawNow();
    }

    I have taken this code from previously discussed navigation topic from this forum but it gives errors.

    plz help

    thanx

    Meetee

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: create navigation pane??

    Have you checked the examples shipped with 2nd edition SDKs ? I think the same code should works also with 3rd edition SDKs.

    yucca

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    39

    Re: create navigation pane??

    Thanx for reply,

    I havn't installed sdk 2.0, so is there any way to get that example without installing that sdk?

    Meetee

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    39

    Re: create navigation pane??

    Hey,

    I got that sdk 2.0 edition example....
    http://ncsp.forum.nokia.com/csp/?body=detail;aid=11463

    Thanx

    Meetee

  6. #6
    Registered User
    Join Date
    Apr 2006
    Posts
    47

    Re: create navigation pane??

    metee...
    have you defined EIK_APP_INFO and llink status_pane? what sort of error comes during iNaviPane = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi))? above method returns control's pointer. do not use constructl or constructfromresourcelc after such a operation since control should already be second-phase constructed. can you send related resource structure identified as R_MYVIEW_STATUS_PANE?

Similar Threads

  1. status pane in E61 screen (320x240 ) s603rd
    By francobellu in forum Symbian
    Replies: 2
    Last Post: 2008-07-10, 12:48
  2. Colored images in Navigation pane ???
    By kiranpuranik in forum Symbian
    Replies: 1
    Last Post: 2006-06-07, 06:00
  3. Problem with navigation pane
    By huwell in forum Symbian
    Replies: 3
    Last Post: 2004-06-22, 10:04
  4. Navigation pane and arrow keys
    By rikymalti1 in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-10-07, 15:51
  5. putting background in title and navigation pane
    By pncbose in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-02-05, 12:51

Posting Permissions

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