Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How to insert text on the navipane of a Symbian app

From Wiki
Jump to: navigation, search

This article shows how to insert text onto the navi-pane of a Symbian application.

Article Metadata
Created: eswar_illuri (04 May 2007)
Last edited: hamishwillee (30 May 2013)
CAknNavigationControlContainer* iNaviPane = 0;
CAknNavigationDecorator* iNaviDecorator = 0;
//Get the reference of the status pane
CEikStatusPane *statusPane = iEikonEnv->AppUiFactory()->StatusPane();
if ( statusPane )
//Get the reference of the navi pane
iNaviPane=static_cast<CAknNavigationControlContainer*>(statusPane->ControlL( TUid::Uid(EEikStatusPaneUidNavi)) );
//Create a Navi decorator object
iNaviDecorator= iNaviPane->CreateEditorIndicatorContainerL();
//Get the reference of the indicator container inside the NaviDecorator
CAknIndicatorContainer* indiContainer = static_cast<CAknIndicatorContainer*>(iNaviDecorator->DecoratedControl());
if ( indiContainer && CEikStatusPaneBase::Current() )
TBuf<32> msgSize;
msgSize.Append(_L("Add Text here")); // Text to be displayed
TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), msgSize );
indiContainer->SetIndicatorState(TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), EAknIndicatorStateOn);
//Push the object onto the navi pane.
iNaviPane->PushL( *iNaviDecorator );
This page was last modified on 30 May 2013, at 04:38.
22 page views in the last 30 days.