How can I move the cursor to the beginning of the CEikRichTextEditor

Login to reply to this topic.
Wed, 2008-01-30 15:37
Joined: 2004-12-07
Forum posts: 72

Hello,

I created an instance of CEikRichTextEditor. I put some texts into this editor. But the cursor is always at the end of the content.

I hope it goes to the beginning of the content when the content changes every time.

iOutputRichText->HandleTextChangedL();

iOutputRichText->SetCursorPosL(1, ETrue);
iOutputRichText->SetTextL(&output);
this->DrawDeferred();

I use the function SetCursorPosL(), but it seems that it does not work.

Please help me.


Wed, 2008-01-30 16:25
Joined: 2007-12-19
Forum posts: 49
Re: How can I move the cursor to the beginning of ...

Maybe change function call order to

iOutputRichText->SetTextL(&output);
iOutputRichText->HandleTextChangedL();
iOutputRichText->SetCursorPosL(1, ETrue);

  • Login to reply to this topic.