×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    230

    Question Edwin control in navigation pane

    Hi,

    I have created Navigation pane and now i want to add edwin control in it.

    for that, in rss file,

    RESOURCE AVKON_SETTING_PAGE r_my_setting_page
    {
    label = "Search";
    type = EEikCtEdwin;
    editor_resource_id = r_search_edwin;
    }


    RESOURCE EDWIN r_search_edwin
    {
    width = 15;
    lines = 1;
    maxlength = 30;
    //numeric_keymap=EAknEditorFixedDiallingNumberModeKeymap;
    default_input_mode=EAknEditorTextInputMode;
    allowed_input_modes=EAknEditorTextInputMode;
    }

    and in Appui.cpp

    TKeyResponse CIdeaAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
    {

    CAknNavigationDecorator* navi = iNaviDecorator;
    // if we haven't already got a navigation decorator, then try to get current one
    if (navi == NULL)
    {
    TUid naviPaneUid;
    naviPaneUid.iUid = EEikStatusPaneUidNavi;

    CEikStatusPane* statusPane = StatusPane();

    CAknNavigationControlContainer* naviPane =
    (CAknNavigationControlContainer *) statusPane->ControlL(naviPaneUid);

    navi = naviPane->Top();
    }


    if (navi == NULL)
    {
    return EKeyWasNotConsumed;
    }


    CAknTabGroup* tabGroup = (CAknTabGroup*) navi->DecoratedControl();

    if (tabGroup == NULL)
    {
    return EKeyWasNotConsumed;
    }
    if(tabGroup->ActiveTabId()==1)
    {
    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader, R_MY_SETTING_PAGE);
    CleanupStack::PopAndDestroy();
    }

    // if we've got a tab group, then offer the key event to it.
    return tabGroup->OfferKeyEventL(aKeyEvent, aType);
    }

    No error occurs, and program executes but edwin control is not displayed!

    Any pointers?

    Thanx,

    Symbee
    Last edited by symbee; 2006-07-07 at 11:09.

  2. #2
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    230

    Re: Edwin control in navigation pane

    Hi all,

    Plz help me to solve this problem if anyone has any idea about this...

    Regards
    Symbee

Similar Threads

  1. Status Pane and Control Pane Text Color
    By stv2005 in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-03-23, 03:18
  2. status pane in E61 screen (320x240 ) s603rd
    By francobellu in forum Symbian
    Replies: 2
    Last Post: 2008-07-10, 12:48
  3. Edwin control query
    By SymbieRahul in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-05-23, 03:50
  4. Replies: 1
    Last Post: 2004-11-25, 03:42
  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
  •  
×