How to create editor with simple white background?
| Sat, 2007-12-22 14:23 | |
|
Good day. I have added to my compound control new CEikEdwin component and faced with strange problem when instead white backround I see skin background in my editor, and also border in my editor does not drawing. During editing text in editor background and border of editor remain the same. What I need to do for enabling white bg and border? //.H file |
|






Forum posts: 54
For Changing the back ground Color try with this code
CParaFormatLayer*pFormatLayer = CEikonEnv::NewDefaultParaFormatLayerL();
CleanupStack::PushL(pFormatLayer);
CParaFormat* paraFormat=CParaFormat::NewLC();
TParaFormatMask paraFormatMask;
pFormatLayer->SenseL(paraFormat,paraFormatMask);
paraFormat->iFillColor=aColor;
paraFormatMask.SetAttrib(EAttFillColor);
pFormatLayer->SetL(paraFormat, paraFormatMask);
iEdwin->SetParaFormatLayer(pFormatLayer); // Edwin takes the ownership
CleanupStack::PopAndDestroy(paraFormat);
CleanupStack::Pop(pFormatLayer);
thanks
praveenvlm