×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Location
    Lahore, Pakistan
    Posts
    56

    Skin enabling problem in CEikEdwin

    hi
    I basically want to enable skin on the editor to make it little pretty but facing problem in doing that let me explain my problem below:
    i have defined a resource in myApp.rss as fallows

    RESOURCE EDWIN r_aknexeditor_view1_edwin
    {
    flags = EAknEditorFlagDefault | EEikEdwinNoHorizScrolling ;
    width = 7;
    lines= 2;
    maxlength = 10;
    }

    and in myAppContainer.cpp

    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC( reader, R_AKNEXEDITOR_VIEW1_EDWIN );
    iNumberTxt = new ( ELeave ) CEikEdwin;
    iNumberTxt->SetContainerWindowL( *this );
    iNumberTxt->ConstructFromResourceL( reader );
    now if i use the following line of code
    iNumberTxt ->SkinBackgroundControlContext ();
    iNumberTxt ->SkinEnabled ();
    than i have no error at compile time but when i build it for release (.sis file)
    than following error appears

    "undefined reference to `CEikEdwin::SkinEnabled(void) const"

    can any body help me in this regard.

    and if i am going in the wrong direction than plz guide me what should i do to enable skin on that iNumberTxt.
    regards
    Muhammad Shahzad Amin

  2. #2
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: Skin enabling problem in CEikEdwin

    What version of S60 are you building this application for?
    And from your code it seems that you expect SkinEnabled to turn ON the skinning on the edwin.But the documentation says:
    Code:
    TBool CEikEdwin::SkinEnabled  (    )  const 
     
       Access to disposition of the editor to perform Skinning. 
    
    This does not take into account whether the application is skin enabled or whether the environment is providing a background control context. It is only a function of whether editor's (default) disposition to skin has been countered by calls on the editor API.
    
    
    Returns:
    EFalse iff SetSkinBackgroundControlContextL has been called with NULL in its most recent call
    Hope this helps.
    --Mayur.

Similar Threads

  1. Skin Enabling in RichText Editor
    By himsymbian in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-14, 08:44
  2. About 6230 Bt Problem
    By eerkek in forum Bluetooth Technology
    Replies: 17
    Last Post: 2005-02-08, 12:33
  3. CEikEdwin Problem
    By binubabykurian in forum Symbian
    Replies: 5
    Last Post: 2004-11-09, 11:54
  4. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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