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
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.
The following library is required:
void UpdateCharacterCountL(const TInt& aCount)
MAknEditingStateIndicator *ei = CAknEnv::Static()->EditingStateIndicator();
CAknIndicatorContainer *ic = ei->IndicatorContainer();
ic->SetIndicatorValueL(TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), msgSize);
ic->SetIndicatorState(TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ),EAknIndicatorStateOn);