At 12:00am -0800 00-11-16, Palm Developer Forum digest wrote:
>Subject: FldGetScrollValues
>From: Steve <[EMAIL PROTECTED]>
>Date: Wed, 15 Nov 00 17:23:16 -0800
>X-Message-Number: 63
>
>I have a field which is scrolled to the top. FldGetScrollValues returns 0
>as the top line. Now in response to the scroll bar I scroll down one line
>using FldScrollFld(xxx,1,down). Now FldGetScrollValues returns **2** as
>the top line rather than 1. Is this a bug in FldGetScrollValues or
>something else?

I think this would happen if the line that got scrolled into view 
(the new top line) ended with a linefeed. In that case 
FntGetScrollValues (called by FldGetScrollValues) will add one to the 
result.

Now as to _why_ this is done...weird. I could see this being 
necessary if the scrollPos passed to FntGetScrollValues was on the 
very last line in a field, which ended with a linefeed, but otherwise 
it seems like it's going to return the wrong value.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to