Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2005

    Skin Enabling in RichText Editor

    I am using a rich text editor. I am displaying text in it with proper formatting.
    But I want to make that Rich text Editor Control Skin-Enabled, so that the
    text will be displayed on the skin. Is It possible to make that control skin-enabled. & if possible how?

  2. #2
    Registered User
    Join Date
    Jul 2004

    Re: Skin Enabling in RichText Editor

    add skin support in your container.
    beware to detect the default text color for the current skin so that the text can be display in the optimized color, for example, black if no skin and white if skin is in dark color.


  3. #3
    Regular Contributor
    Join Date
    Mar 2003

    Re: Skin Enabling in RichText Editor

    This adviced worked for me with a CEikGlobalTextEditor so I guess it works also with CEikRichTextEditor.

    What I had to do in my application to get skin background to the CEikGlobalTextEditor was the following:

    void CMyAppUi::ConstructL()
    // Enables skins in all the optionally
    // skin-providing controls in this app


    void CMyContainer3::ConstructL(const TRect& aRect)

    iBackGround = CAknsBasicBackgroundControlContext::NewL(
    KAknsIIDQsnBgAreaMain, Rect(), EFalse );

    delete iBackGround;

    TTypeUid::Ptr CMyContainer3::MopSupplyObject(TTypeUid aId)
    if(aId.iUid == MAknsControlContext::ETypeId && iBackGround)
    return MAknsControlContext::SupplyMopObject( aId, iBackGround);
    return CCoeControl::MopSupplyObject( aId );
    } // MopSupplyObject

  4. #4
    Regular Contributor
    Join Date
    Jan 2004

    Question Re: Skin Enabling in RichText Editor

    I have two rich editors in my view. I also would like to highlight one of the rich text editors. I was thinking about creating the following at the constructor of the container:

    m_pBackground = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain, rect, EFalse);

    m_pHighLight = CAknsBasicBackgroundControlContext::NewL( KAknsIIDQsnBgAreaMainHigh, rect, EFalse );

    However, I don't know what I should return from the TTypeUid::Ptr MopSupplyObject(TTypeUid aId) method. Any idea?



Similar Threads

  1. Replies: 4
    Last Post: 2007-04-18, 11:59
  2. Skin Enabling in RichText Editor
    By himsymbian in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-14, 08:44
  3. chinese display in richtext editor
    By symbianyucca in forum Symbian User Interface
    Replies: 4
    Last Post: 2004-11-20, 13:03
  4. Series 60 DP1 theme (skin) editor
    By NxGendev in forum General Development Questions
    Replies: 0
    Last Post: 2004-08-26, 10:13

Posting Permissions

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