×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    16

    how to get background color of a label

    Hi,

    How can i get the background color of CEikLabel

    Thanks
    Anup

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: how to get background color of a label

    Hi,

    look at CEikonEnv::ControlColor() method.
    Regards,
    ivey

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

    Re: how to get background color of a label

    Check this function CEikLabel::GetColorUseListL ( CArrayFix< TCoeColorUse > & aColorUseList ).
    It also gives you the background color used.
    --Mayur.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    13

    Re: how to get background color of a label

    For this u can override and activate the EColorLabelHighlightFullEmphasis setting in OverrideColorL()
    for further details u can refer :
    http://www.newlc.com/How-to-change-t...=lable%20color

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    1,980

    Re: how to get background color of a label

    Try this,

    #include <Eikenv.h>
    #include <GULCOLOR.H>
    .
    .
    .
    TRgb aRgb;
    aRgb = iEikonEnv->Color(EColorLabelHighlightFullEmphasis);
    //Or aRgb = iEikonEnv->Color(EColorLabelHighlightPartialEmphasis);

    Use EColorLabelHighlightFullEmphasis can get background color of the label when highlighted,and EColorLabelHighlightPartialEmphasis is background color of the label when highlighted and dimmed.

Similar Threads

  1. Graphics in background Python processes?
    By canopus961 in forum Symbian
    Replies: 8
    Last Post: 2008-07-21, 21:31
  2. Replies: 8
    Last Post: 2007-02-09, 00:16
  3. Background of notification icon
    By white_dragon in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-04-28, 14:52
  4. label colors
    By jvalkeal in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-05-26, 10:52
  5. background image in series60
    By jack44 in forum Symbian
    Replies: 1
    Last Post: 2003-07-31, 18: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
  •  
×