Problems with Rich Text Editor
I used this code:
[CODE]
CreateWindowL();
SetRect( aRect );
TResourceReader reader;
iCoeEnv->CreateResourceReaderLC(reader, R_STARTTIME);
iEdwin = new(ELeave) CEikRichTextEditor(TGulBorder::EThickDeepRaisedWithOutline);
iEdwin->SetContainerWindowL(*this);
iEdwin->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy(); // reader
iEdwin->SetExtent(TPoint(0,20),TSize(85,20));
iEdwin->SetBackgroundColorL(KRgbDarkRed);
iEdwin->SetFocus(ETrue);
ActivateL();
iEdwin->SetCursorPosL(0, EFalse);
//.rss
RESOURCE RTXTED r_starttime
{
width = 85;
height = 20;
textlimit = 50;
flags = EEikEdwinReadOnly | EEikEdwinAvkonDisableCursor;
}
[/CODE]
it gives me this error:
[CODE]undefined identifier 'R_STARTTIME'[/CODE]
Re: Problems with Rich Text Editor
Your .rsg file is missing "R_STARTTIME". Check whether you have included the .rsg file as a header.
Priju
Re: Problems with Rich Text Editor
you just import the project onec again and compile the entire files because you have already given the r_starttime in .rss file.