Hello,
I tried many things with setting Emphasis and overriding color of EColorControlBackground but none seem to work. So how I can change the background of label?
Hello,
I tried many things with setting Emphasis and overriding color of EColorControlBackground but none seem to work. So how I can change the background of label?
easiest way would propably be not using labels, instead you could simply use Drawtext function from Gc, then you could use any brush patterns (or just transparenc background) with text drawing. You could also make your own custom Label with CCoeControl, incase you really want to do it that way..
Strange, based on http://www.developer.nokia.com/Commu...ymbian_C%2B%2B or http://www.developer.nokia.com/Commu..._use_CEikLabel, I would assume they work. Or at least worked some time ago.
Which device or emulator do you test with?
paste here the piece of code which you tried.
tried every combination of those...
label->OverrideColorL( EColorLabelText, KRgbWhite);
label->OverrideColorL(EColorControlBackground, KRgbWhite);
label->OverrideColorL( EColorLabelHighlightFullEmphasis, KRgbRed );
label->SetEmphasis( CEikLabel::EFullEmphasis);
label->SetEmphasis( CEikLabel::EPartialEmphasis);
on device:
S60 3rd edition emulator
The code below works for me on S60 3rd Edition emulator.
BR/ZitengCode:... iLabel1->SetEmphasis( CEikLabel::EFullEmphasis); iLabel1->OverrideColorL( EColorLabelHighlightFullEmphasis, KRgbRed ); // red background iLabel1->OverrideColorL( EColorLabelTextEmphasis, KRgbBlue ); // and blue text ...