Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor Kaz32's Avatar
    Join Date
    Dec 2008
    Posts
    227
    Hi I'm using CEikEdwin to get input

    Problem is when I try run on device (6120 classic), press * -> open special character table, and press select -> error happen, the error is something like "myAppName 1"

    but when I try on e72 or emulator it not error

    How to fix this?

    My code for creating edwin is like this
    Code:
    void CSearchContainer::CreateEdwin()
    {
        TRect screen;
        AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EScreen, screen);
        
        TInt flag = EEikEdwinWidthInPixels | 
                    EAknEditorTextInputMode |
                    EAknEditorNumericInputMode | 
                    EEikEdwinResizable |
                    EAknEditorFlagNoT9;
    
        TBuf<5> none;
        none.Copy(_L(""));
        MAknsSkinInstance* skin = AknsUtils::SkinInstance();
        TRgb color;
        TCharFormat charFormat;
        TCharFormatMask charFormatMask;
        if (AknsUtils::GetCachedColor(skin, color, KAknsIIDQsnComponentColors, EAknsCIQsnTextColorsCG1) == KErrNone)
            charFormat.iFontPresentation.iTextColor = KRgbDarkGray;
    
        const CFont* logicalFont = AknLayoutUtils::FontFromId(EAknLogicalFontPrimarySmallFont);
        charFormat.iFontSpec.iHeight = 180;
        charFormat.iFontSpec = logicalFont->FontSpecInTwips();
        charFormatMask.SetAll();
        charFormatMask.SetAttrib(EAttColor);
        charFormatMask.SetAttrib(EAttFontTypeface);
        charFormatMask.SetAttrib(EAttFontHeight);
        charFormatMask.SetAttrib(EAttFontStrokeWeight);
    
        charFormat.iFontSpec.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
    
        CCharFormatLayer* cCharFL = CCharFormatLayer::NewL(charFormat, charFormatMask);
    
        iEdwinSearch = new (ELeave) CEikEdwin();
        iEdwinSearch->ConstructL(flag, 0, 40, 0);
        iEdwinSearch->SetContainerWindowL(*this);
        
        iEdwinSearch->SetTextL(&none);
        iEdwinSearch->SetCharFormatLayer(cCharFL);
        iEdwinSearch->SetFocus(ETrue);
        DrawDeferred();
    }
    Thanks

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I suppose you could try checking the panic code: http://www.developer.nokia.com/Commu...ded_panic_code it often gives better idea on what is happening in there.

  3. #3
    Nokia Developer Expert Devnull's Avatar
    Join Date
    Sep 2011
    Posts
    381
    When a panic including your application name that would mean issued by Panic("Myappname",EPanicName) command in your code and panic enumeration located in the included headers. Check for the Panics defined in your app, basic ones usually located at a switch's default case.

  4. #4
    Regular Contributor Kaz32's Avatar
    Join Date
    Dec 2008
    Posts
    227
    I'm still not solve this problem

    I'm just curious why on 6120 error, while on E72 and on emulator the special character table work fine

    Maybe have suggestion to solved this problem?

    Thanks

  5. #5
    Regular Contributor Kaz32's Avatar
    Join Date
    Dec 2008
    Posts
    227
    Err just try Devnull advice

    So I just commented this code on HandleCommand in AppUi, and it solved the problem
    Code:
    void CMyApsAppUi::HandleCommandL(TInt aCommand)
    {
        switch (aCommand)
          {
          case 1:
          ....
          case 2:
          ....
          default:
    //        Panic( EMyApsUi); --> I comment this line
              break;
          }
    }
    And the * button not error again when show special character table

    Is that ok to comment that line?

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    Basically you are just ignoring any commands you are not implementing, in general it is ok, as long as you check that all commands supposed to be handled are then indeed handled designed way.

Similar Threads

  1. special character
    By prathi in forum Symbian C++
    Replies: 0
    Last Post: 2010-06-14, 11:30
  2. Special Character table for CEikEdwin
    By nishant.khandagale in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-09-08, 07:00
  3. How to disable special character table (CEikEdwin)
    By Dexterp37 in forum Symbian C++
    Replies: 10
    Last Post: 2006-12-07, 20:26
  4. Special Character
    By bogakym in forum Symbian C++
    Replies: 0
    Last Post: 2003-11-11, 13:18
  5. Chinese or Special Character
    By hctsang in forum General Messaging
    Replies: 1
    Last Post: 2002-07-29, 19:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved