List box not responding

Login to reply to this topic.
Fri, 2004-12-24 07:40
Joined: 2004-11-17
Forum posts: 12
HI

i have implemented a list with rwo options on it .But it is not responding to up down arrow keys on emulatori .e the second item doesnot get the focus inspite of pressing down key on emulator...but if i select the second option by using mouse then focus moves to the second option.

my code of createlist is as follows


void CDropContainerOne::CreateListL()
{

 iListOne=new(ELeave) CAknSingleStyleListBox();
 
 iListOne->SetContainerWindowL(*this);
 
 TResourceReader reader;  // to read the list from resource

 iEikonEnv->CreateResourceReaderLC(reader,R_FIRST_LIST_RESOURCE);
 
 iListOne->ConstructFromResourceL(reader);
 
 CleanupStack::PopAndDestroy();// resource is read on the heap so deleted

}


resource file is



RESOURCE LISTBOX r_first_list_resource
{
 
 
 array_id=r_first_list_items;
 flags=   EAknListBoxSelectionList ;

}





RESOURCE ARRAY r_first_list_items
   {
   items =
      {
      LBUF
         {
         txt = ABC;
         },
      LBUF
         {
         txt = CDE;
         }
      };     
   }



Whats the problem coming to it ........................................ Huh:  Sad

Fri, 2004-12-24 08:45
Joined: 2004-11-17
Forum posts: 12
List box not responding
replying to own post.......


problen was coming in not inplementing offerkeyeventL() correctly
  • Login to reply to this topic.