Here I declare a container itself as a listbox observer (class CMyContainer : public MEikListBoxObserver within the header file); thus it implements HandleListBoxEventL(), as shown below:
The container has set itself to be the Listbox’s observer ( iListBox-> SetListBoxObserver(this) ) within the Container’s ConstructL().void CMyContainer::HandleListBoxEventL(
CEikListBox* aListBox, TListBoxEvent aEventType)
{
if (aEventType == EEventEnterKeyPressed)
{
// I know I could really do something here but I just wonder how to do different thing when i select different item!
}
}
I know I could really do something but I just wonder how to do different things when i select a different item!







