I've created a CEikEdwin editor in a container (CCoeControl) just as shown
in the SDK editor sample. the editor works perfectly. only line-feed character
in special character table seems to be not working. listening key events for
EKeyLineFeed, EKeyEnter, ... in container's OfferKeyEventL function does not
solve the problem. I could not find any resource definition about
enabling/disabling line-feeds.

is there any way to enable line-feed character in special character table?

thanks.
Akermen


resource definition of editor:
------------------------------------------
RESOURCE EDWIN r_test_edwin
{
flags = EAknEditorFlagDefault;
width = 0;
maxlength = 0;
}
------------------------------------------

creation of the editor:
------------------------------------------
TResourceReader reader;
iCoeEnv->CreateResourceReaderLC(reader, R_TEST_EDWIN);

iEditor = new (ELeave) CEikEdwin;
iEditor->SetContainerWindowL(*this);
iEditor->SetAknEditorFlags(EAknEditorFlagDefault);
iEditor->SetAknEditorAllowedInputModes(EAknEditorAllInputModes);
iEditor->SetAknEditorInputMode(EAknEditorTextInputMode);
iEditor->EnableCcpuSupportL(ETrue);
iEditor->SetBorder(TGulBorder::ESingleGray);
iEditor->ConstructFromResourceL(reader);

CleanupStack::PopAndDestroy();

iEditor->CreatePreAllocatedScrollBarFrameL();
iEditor->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);

const TSize size(aRect.Width(), aRect.Height() - iOffsetTop);
const TPoint pos(0, iOffsetTop);

iEditor->AddEdwinObserverL(this);
iEditor->SetExtent(pos, size);
iEditor->SetFocus(ETrue);

TCharFormat cFormat;
TCharFormatMask cFormatMask;
cFormat.iFontSpec = pFont->FontSpecInTwips();
cFormatMask.SetAll();
CGlobalText* pText = (CGlobalText*)iEditor->Text();
pText->ApplyCharFormatL(cFormat, cFormatMask, 0, 0);

TParaFormatMask mask;
mask.SetAll();
iFormat = CParaFormat::NewL();
iFormat->iLineSpacingInTwips = 100;
iFormatLayer = CParaFormatLayer::NewL(iFormat, mask);
iEditor->SetParaFormatLayer(iFormatLayer);
------------------------------------------