Hi,

I want to draw lines inside a CEikEdwin control that is inside a container.

I derived my own CEikEdwin class : CEikEdwinWithLines and I created a Draw() function that draws lines.
I also created a OfferKeyEventL() to edit the text.
("
void CEikEdwinWithLines::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.SetPenStyle(CGraphicsContext::ESolidPen);
gc.SetPenColor(TRgb(150,200,240));
gc.DrawLine(TPoint(10,110),TPoint(170,110));
gc.DrawLine(TPoint(10,130),TPoint(170,130));
}
")

It works but I have now troubles with the text. It disapears when the Draw() function of the container is called. The text appears again if the user press a key to edit the text.

Any solution ?

Can we have access to the code of the CEikEdwin class? I think that would help.

Sylvain Guillemot