UpArraow nd DownArraow of list is not

Login to reply to this topic.
Sat, 2006-04-29 09:07
Joined: 2005-01-22
Forum posts: 112
hi
  dude
  i m facing offerkey event problem the prob is so prob is   
  UpArraow nd DownArraow of list is not   
  working. 




/////////// code sniff
in AppUi handlekeyEventL
 
case EKeyRightArrow:

      {
      
          if (iActiveView == iLeftViewWallet)
        {
             if (iLeftViewWallet->OfferKeyEventL(aKeyEvent,aType) == EKeyWasNotConsumed)
             {
               iCardsList->SetFocus(ETrue);
               iLeftViewWallet->SetFocus(EFalse);
               iLeftViewWallet->DrawNow();
               iCardsList->DrawNow();
               iActiveView = iCardsList;
                   iButtonGroup->DimCommand(EEikOpen,EFalse);
               iButtonGroup->DimCommand(EEikShow,EFalse);
               iButtonGroup->DimCommand(EEikList,EFalse);
               iButtonGroup->DimCommand(EEikCmdExit1,EFalse);
               iButtonGroup->DrawNow();
             }
            
             return EKeyWasConsumed;
       }
           
        else return iActiveView->OfferKeyEventL(aKeyEvent,aType);
      }



in listview




TKeyResponse CWalletLeftView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{      

if(iMainList)
   {
   
    if(aKeyEvent.iCode==EKeyUpArrow||aKeyEvent.iCode==EKeyDownArrow)

      {   
         iMainList->OfferKeyEventL(aKeyEvent,aType);

            CEikonEnv::Static()->AlertWin(_L("SecondList"));
      
         TInt index=GetSelection();
         if(index==0)
         {
         appUi->iCardsList->AddItemL();
         }

         if(index==1)
         {
         appUi->iCardsList->AddItemL();
         }

         if(index==2)
         {
            appUi->iCardsList->AddItemL();
         }

           if(index==3)
         {
            appUi->iCardsList->AddItemL();
         }

         if(index==4)
         {
            appUi->iCardsList->AddItemL();
         }

         if(index==5)
         {
            appUi->iCardsList->AddItemL();
         }
      

   
         if(index==6)
         {
            appUi->iCardsList->AddItemL();

         }
      
      
         return EKeyWasConsumed;
      }
      
   }
   return EKeyWasNotConsumed;

}


so prob is that, UpArraow nd DownArraow of list is not   
working. 

Sat, 2006-04-29 09:40
Forum Nokia Champion
Joined: 2005-08-31
Forum posts: 124
Re: UpArraow nd DownArraow of list is not
hi,

there is EKeyUpArrow and EKeyDownArrrow also vaibale in the keycode use this properly, will resolve ur issue..


Regards,
Mateen maldar

Mateen Maldar

  • Login to reply to this topic.