I'm trying to create a text editor (CEikEdwin) in AppUi class like this:
iMsgEditor = new (ELeave) CEikEdwin;
iMsgEditor->ConstructL(CEikEdwin::EJustAutoCurEnd, 0, 0, 100);
I expected the editor to draw itself, but I cannot see it. I tryed to call iMsgEditor->SetFocus(ETrue), but nothing happend. I also tryed to call ActivateL() on the AppUi class but that crashes the application (seems to be a panic).
It feels like I'm missing the point here. What am I supposed to do to get a simple text input field? Preferably I would like to not create from a resource.
Can anyone show me a very, very simple example?