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 over the next few weeks. Thanks for all your past and future contributions.

Showing count in the navi pane on Symbian

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia N95
Platform(s): S60 3rd Edition, FP1
Keywords: MAknEditingStateIndicator
Created: User:Technical writer 1 (02 Oct 2008)
Last edited: hamishwillee (14 Jun 2012)



The remaining text count can be shown in the navi pane in a similar way as in the native SMS editor using MAknEditingStateIndicator, which can be accessed through the Eikon environment.

This snippet can be self-signed.


This code snippet requires application framework because MAknEditingStateIndicator is accessed through the Eikon environment variable.

MMP file

The following library is required:

LIBRARY avkon.lib

Header files

#include <aknindicatorcontainer.h> 
#include <AknEditStateIndicator.h>

Source file

 void UpdateCharacterCountL(const TInt& aCount)
MAknEditingStateIndicator *ei = CAknEnv::Static()->EditingStateIndicator();
if( ei)
TBuf<255> msgSize;
CAknIndicatorContainer *ic = ei->IndicatorContainer();
ic->SetIndicatorValueL(TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), msgSize);
ic->SetIndicatorState(TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ),EAknIndicatorStateOn);
This page was last modified on 14 June 2012, at 01:11.
40 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.