Hi guys and thank for your answers,
electrique, can you please provide an example or list the other methods I need to override? I'll be glad to try it. BTW, I'm using carbide.c++ express (Still waiting to the pro version).
JammuK, I use the following code to load the navigation pane with my TAB_GROUP resource. Hope it helps.
Imzadi
Code:
void CMyMobileS60AppUi::LoadNavigationPane()
{
TUid naviPaneUid;
naviPaneUid.iUid = EEikStatusPaneUidNavi;
CEikStatusPane* statusPane = StatusPane();
CEikStatusPaneBase::TPaneCapabilities subPane = statusPane->PaneCapabilities(naviPaneUid);
// if we can access the navigation pane
if (subPane.IsPresent() && subPane.IsAppOwned())
{
CAknNavigationControlContainer* naviPane = (CAknNavigationControlContainer *) statusPane->ControlL(naviPaneUid);
// read the tab group resource
TResourceReader reader;
iCoeEnv->CreateResourceReaderLC(reader, R_MYMOBILES60_TABGROUP);
if (iNaviDecorator)
{
delete iNaviDecorator;
iNaviDecorator = NULL;
}
// set the navigation pane tab group, ownership is transferred to us here
iNaviDecorator = naviPane->CreateTabGroupL(reader);
CleanupStack::PopAndDestroy(); // pushed by CreateResourceReaderLC
naviPane->PushL(*iNaviDecorator); // draws the navigation pane
CAknTabGroup* tabGroup = (CAknTabGroup*) iNaviDecorator->DecoratedControl();
if ( tabGroup )
{
tabGroup->SetObserver(this);
}
}
}