×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    3

    How to extract text color defined by skin ?

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

    I have tried to use GetCachedColor(skin, color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6 );

    However, it doesn't work....

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

    Thanks
    Dos

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: How to extract text color defined by skin ?

    Hi,
    I have the same problem, just wonering if you solved it?

    Thanks and Regards,
    Pat.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to extract text color defined by skin ?

    I have tried
    AknsUtils::GetCachedColor(skin, defaultcolor, KAknsIIDQsnLineColors, EAknsCIQsnTextColorsCG1/*EAknsCIQsnLineColorsCG1 */);

    Till V8.1a it works never tried on S60 v9.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: How to extract text color defined by skin ?

    Got it working - Thanks for your response.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: How to extract text color defined by skin ?

    Hi Kumar Where you called it, And after it we will not set pen color. And what is defaultcolor?


    AknsUtils::GetCachedColor(skin, defaultcolor, KAknsIIDQsnLineColors, EAknsCIQsnTextColorsCG1/*EAknsCIQsnLineColorsCG1 */);
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

Similar Threads

  1. How to extract text color defined by skin ?
    By saurbh_g in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-04-05, 14:03
  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
  •