Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor himsymbian's Avatar
    Join Date
    Apr 2005
    Posts
    274
    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 lukedau's Avatar
    Join Date
    Jul 2004
    Posts
    93
    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.

    dau

  3. #3
    Regular Contributor jyrkiettila's Avatar
    Join Date
    Mar 2003
    Location
    Helsinki
    Posts
    63
    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
    BaseConstructL(EAknEnableSkin);

    ...


    void CMyContainer3::ConstructL(const TRect& aRect)
    {

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


    CMyContainer3::~CMyContainer3()
    {
    ...
    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 ferranhalden's Avatar
    Join Date
    Jan 2004
    Posts
    128
    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?

    Regards,

    Ferran

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. Rich Text Editor and Dialog
    By sakhya in forum Symbian
    Replies: 0
    Last Post: 2005-04-28, 17:09
  4. chinese display in richtext editor
    By symbianyucca in forum Symbian User Interface
    Replies: 4
    Last Post: 2004-11-20, 13:03
  5. 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
  •  
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