CEikEdwin scrolling problem

Login to reply to this topic.
Wed, 2007-09-26 07:18
Joined: 2007-09-15
Forum posts: 61

I am working on CEikEdwin(s) but facing some irritating problems.
The scene is something like I have 2 Edwins, Edwin1 to add text to Edwin2. Edwin1 has the focus and Edwin2 is read only. When the text is added, the focus in Edwin2 automatically scrolls to the bottom of the text. Now when I scroll up in Edwin2, then I can successfully scroll to the top, then the scrolling stops, but when I try to scroll down then after successfully scrolling to the bottom it carries on to scroll down for about 5-6 lines and then panics with "CTextLayout usin 12" Panic.

To scroll Up:
Edwin2->MoveDisplayL(TCursorPosition::EFLineUp);
To scroll Down:
Edwin2->MoveDisplayL(TCursorPosition::EFLineDown);

and using
Edwin2->TextLayout()->GetLineNumber(Edwin2->CursorPos())
to get the current line number, and
Edwin2->TextLayout()->GetLineNumber(Edwin2->TextLength())
to get the total number of lines in the edwin.

these values are checked in scri\olling down, but not of any help....


Thu, 2008-01-10 08:02
Joined: 2007-07-24
Forum posts: 55
Re: CEikEdwin scrolling problem

hi,
u go through this example .this might be help u.
http://wiki.forum.nokia.com/index.php/Editor_example
Thanks
mitu

  • Login to reply to this topic.