Hi to all,
Hope you all will be fine. I created a form and add a custom command in it. But the problem is when i try to use command then nothing happen. It goes inside the command but nothing happen. Here is my code.
Everywhere when i used lineCode:void CL3_Mazazeek_AssignDefaultToneScreen_ViewContainer::DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ) { CAknForm::DynInitMenuPaneL( aResourceId, aMenuPane ); if ( aResourceId == R_AVKON_FORM_MENUPANE ) { aMenuPane->SetItemDimmed( EAknFormCmdAdd, ETrue ); aMenuPane->SetItemDimmed( EAknFormCmdLabel, ETrue ); aMenuPane->SetItemDimmed( EAknFormCmdDelete, ETrue ); TInt pos; if ( !aMenuPane->MenuItemExists( EMyFormCmdHelp, pos ) ) { CEikMenuPaneItem::SData menuItem; menuItem.iCommandId = EMyFormCmdHelp; menuItem.iCascadeId = 0; // set for submenus menuItem.iFlags = 0; // e.g. EEikMenuItemDimmed menuItem.iText = _L("Send"); menuItem.iExtraText = _L(""); aMenuPane->AddMenuItemL( menuItem ); } //end of if ( !aMenuPane->MenuItemExists } //end of if ( aResourceId == R_AVKON_FO } //end of DynInitMenuPaneL void CL3_Mazazeek_AssignDefaultToneScreen_ViewContainer::ProcessCommandL(TInt aCommand) { switch(aCommand) { case EMyFormCmdHelp: CMTN_STK_MenuAppUi* appui = (static_cast<CMTN_STK_MenuAppUi*>(iEikonEnv->AppUi())); appui->ActivateLocalViewL(TUid::Uid(EL2MazazeekScreenViewId)); break; default: break; } //end of switch CAknForm::ProcessCommandL(aCommand); }
The view switches. But here nothing happen. Why? Please tell me what i am doing wrong?Code:CMTN_STK_MenuAppUi* appui = (static_cast<CMTN_STK_MenuAppUi*>(iEikonEnv->AppUi())); appui->ActivateLocalViewL(TUid::Uid(EL2MazazeekScreenViewId));
Thanks



