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.

Determining the current editing state of a Symbian app

From Wiki
Jump to: navigation, search

This code snippet shows how to get the value of the Symbian status pane "editing value" indicator.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Created: User:Technical writer 2 (19 Oct 2006)
Last edited: hamishwillee (08 Oct 2012)


Symbian applications can get the current editing state. This information is displayed as an editing state indicator in the status pane. Some applications may want to indicate the editing state in a custom way in, e.g., their main pane. The following code snippet can be used to handle such situations.


The solution is to use the CAknEnv class to get the current editing state indicator.

struct S_uid: public TUid
S_uid(int i){ iUid = i; }
//Get a reference the indicator container using the CAKnEnv class.
MAknEditingStateIndicator *ei = CAknEnv::Static()->EditingStateIndicator();
CAknIndicatorContainer *ic = ei->IndicatorContainer();
//Check which editing state is active
// T9 Mode
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorQuery)))
// Pen Mode
const char *cp;
// Lower case alphabet mode
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorUpperCase)))
// Upper case alphabet mode
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorTextCase)))
// Text Auto-case mode (Abc)
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorNumberCase)))
// Numeric mode
This page was last modified on 8 October 2012, at 03:15.
32 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.