Problem with scroll in CTextView

Login to reply to this topic.
Wed, 2007-10-10 19:11
Joined: 2005-11-29
Forum posts: 15

Hi!

I am coding a class to create a text box using a CTextView object, but I'm having problems with the scroll.

This is the code I use for the scroll:

TInt scrollLines = -1;
iTextView->ScrollDisplayLinesL( scrollLines );

This code works properly in Nokia N70 and N80, but it crashes in N95 when 'scrollLines' has a negative value.
Any idea?

In other way, I would like my app to know if is possible to scroll up or scroll down (in other words, if the first/last line is shown), but I don't know how to check that.
The way I do that is trying to scroll up one line, checking the value of scrollLines to know if the scroll was success, and then scroll down one line to restore the initial state. But this way produces an ugly blink.

  • Login to reply to this topic.