×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155

    How to extract text color defined by skin ?

    Normally we hard code text color to black,blue etc. But if skin color is dark, user will be unable to read text. So I want use text color that is defined by skin.

    By reading earlier mail I got this..

    MAknsSkinInstance* skin =AknsUtils::SkinInstance();

    TAknsItemID data;
    data.Set(EAknsMajorSkin, EAknsMinorQsnComponentColors);
    CAknsColorTableItemData* item = (CAknsColorTableItemData*)skin->GetCachedItemData(data, EAknsITColorTable);

    But I'm unable to understand which ID combination to use [ here I tried ...EAknsMajorSkin, EAknsMinorQsnComponentColors]


    Does anybody know how to extract text color defined by skin ?


    cheers
    saur

  2. #2
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155

    Unhappy Re: How to extract text color defined by skin ?

    til now
    I successfully xtracted backgroud bitmap by using AknUtil function GetCachedBitmap(.., ..).

    Related to color only one function is defined GetCachedColor(). Its definition suggest that it returns values from color table. So this function is not desired one.

    I am still looking for "How to get text color defined in skin ?"
    Does anyone hv any clue abt ?




    saur

Similar Threads

  1. How to append text in a text file in j2me
    By lovely_334801 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-04-26, 11:10
  2. How to get button and text colours for skin
    By kdinn in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-06-27, 00:33
  3. Replies: 0
    Last Post: 2004-11-24, 18:49
  4. Replies: 2
    Last Post: 2004-07-08, 09:36
  5. CRichText text problem
    By introuble in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-09-30, 17:29

Posting Permissions

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