How to change the CEikLabel text color and keeping it transparent together?

Login to reply to this topic.
Tue, 2005-08-23 08:43
Joined: 2005-04-08
Forum posts: 50
   we know when you follow the below method the label text color will change to blue,but at the same time the label background color change to black, not transparent now? Then How can we change the CEikLabel text color and keeping it transparent together? Thanks in advance!

      label->OverrideColorL( EColorLabelTextEmphasis, KRgbBlue );
      label->SetEmphasis( CEikLabel::EPartialEmphasis ); 
      label->DrawDeferred();

goready


Thu, 2005-08-25 10:07
Joined: 2005-03-31
Forum posts: 173
Re: How to change the CEikLabel text color and keeping it transp
EColorLabelText

Thu, 2005-08-25 10:30
Joined: 2005-04-08
Forum posts: 50
Re: How to change the CEikLabel text color and keeping it transp
I'd tried EColorLabelText, It did not work at all

goready

Tue, 2006-04-11 05:21
Joined: 2006-03-23
Forum posts: 12
Re: How to change the CEikLabel text color and keeping it transp
You will have to use two OverrideColorL() functions. One for overiding color for your text and second one for overriding color for your background. If u want to make transparent background simply override with White color. Following code is the example  to set the text color as Red while keeping the background White only.

OverrideColorL(EColorLabelTextEmphasis, KRgbRed); // Color  for text
   OverrideColorL(EColorLabelHighlightFullEmphasis, KRgbWhite); // Color for emphesised background
  • Login to reply to this topic.