Hi All
I'm working with Setting list. I want that whenever I select particular item of setting list it should activate another view. I achieve to some extent in offerkeyEventL() function as follows:
TKeyResponse CMedicinePlannerView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
TKeyResponse aResponse;
if ( aType != EEventKey ) // Is not key event?
{
return EKeyWasNotConsumed;
}
switch ( aKeyEvent.iCode ) // The code of key event is...
{
default:
{
const TInt current = m_pMedicinePlannerList- >ListBox()->CurrentItemIndex();
switch(current)
{
case 0:
{
//This view which I want to activate on this list item
gfxGetAppUi()->ChangeViewL(EDosesTimeListBoxView);
break;
}
}
break;
}
But problem is that when I select setting list item and click OK it shows item's editor. Actually I don't want to show this editor.
If anybody know, plz. help me.
Thanks
Rahul



