plain text editor

Login to reply to this topic.
Fri, 2008-07-04 11:10
Joined: 2008-06-27
Forum posts: 17

please tell how to show the text editor in the container , i have used this code in the container under the construct function :
i have included the rsg file.i have debugged and found that debugger is skiping the line
:TResourceReader reader;in the following code:

iEditor = new (ELeave) CEikEdwin;
iEditor->SetContainerWindowL(*this);
TResourceReader reader;
CCoeEnv::Static()->CreateResourceReaderLC(reader, R_PLAINTEXTEDITOR_EDITOR);
iEditor->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy(); // reader
iEditor->SetFocus(ETrue);
iAppUi =(CMultiViewsAppUi *)(CEikonEnv::Static()->AppUi());
SetRect(aRect);
ActivateL();
}

please reply soon


Fri, 2008-07-04 12:14
Joined: 2005-11-20
Forum posts: 1248
Re: plain text editor

Don't know...

It's perfectly normal for the debugger to skip the line with the TResourceReader declaration because no code is executed at that line. This does not mean something is wrong.

I am not sure, but maybe it is worth a try to do an ActivateL() for the EdWin as well.

In your .rss file, do you give a proper length and good coordinates for your EdWin?


René Brunner

  • Login to reply to this topic.