×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    6

    How to differentiate between dictionary input mode and non-dictionary input mode?

    Hi all,
    This is my first post!! :)

    I am writing an application which will be in fullscreen. I use CAknEdwinState class for setting input flags like password, lowercase only, uppercase only, etc. Since I am in fullscreen i want to mark on screen somewhere about current input mode (numeric, dictionary and non-dictionary mode) just like Symbian shows in Cba in a normal app.
    But CAknEdwinState::CurrentInputMode() mode returns 0x01 for both dictionary mode and non-dictionary mode. I checked the SDK as well, i see "EAknEditorTextInputMode" flag but i cannot find any flag for dictionay mode. I saw this flag as well "EAknEditorPredictiveInputMode" but this is defined to the above flag.
    Am i using wrong class? Please help.

    Thanks,
    vijay.

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: How to differentiate between dictionary input mode and non-dictionary input mode?

    hi,
    Code:
    #include <aknindicatorcontainer.h>   //CAknIndicatorContainer
    class MAknEditingStateIndicator
    {
    public:
            virtual void SetState(TInt aState) = 0;
            virtual CAknIndicatorContainer *IndicatorContainer() = 0;
    };
    
    MAknEditingStateIndicator * ei = CAknEnv::Static()->EditingStateIndicator();
    CAknIndicatorContainer *ic = ei->IndicatorContainer();
    TInt isDictionary = 0;
    if(ic->IndicatorState(TUid::Uid(EAknNaviPaneEditorIndicatorT9)))
    {
    	isDictionary = 1;
    }

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    6

    Re: How to differentiate between dictionary input mode and non-dictionary input mode?

    Thanks Jack. I will try that.

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    6

    Re: How to differentiate between dictionary input mode and non-dictionary input mode?

    Thanks Jack!! It works! :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×