---Reply to mail from Michael Nordstr�m about Scroll values (was: Don't like it)
> On Tue, Jul 10, 2001, Chris Hawks wrote:
>> I've been watching the 'scroll' discussions of late and while I agree that
>> we did leave a little too much of the old text on the screen when we
>> scrolled on page, simply scrolling the _entire_ page is BAD.
>
> Yep, and I'm glad to hear that I'm not the only one with that opinion.
>
> However, since it wasn't possible to convince some users about this I
> changed the scroll size to 145 in 1.1.7 (just to prove my point -- it
> was never added to CVS, only included in the binary). In 1.1.9 I used
> 140 and in the next version I will either use 135 or your suggestion
> (window height - height of largest font).
>
> I'll try to come up with a better solution (bug report #6), but it's
> not trivial (images add an extra level of complexity).
Or try this...
Leave SCROLL_ONE_PAGE at 145 and patch get_scroll_value in util.c like
this:
--- ../../plucker-1.1/viewer/util.c Fri Feb 9 17:56:21 2001
+++ ./util.c Wed Jul 11 21:20:53 2001
@@ -166,9 +166,9 @@
Int16 GetScrollValue(void)
{
if (Prefs()->toolbar == frmMainNone)
- return SCROLL_ONE_PAGE + 15;
+ return SCROLL_ONE_PAGE - FntLineHeight() + 15;
else
- return SCROLL_ONE_PAGE;
+ return SCROLL_ONE_PAGE - FntLineHeight();
}
/***********************************************************************
That scrolls one page minus the height of the current font (which just drew
the page).
---End reply
Christopher R. Hawks
HAWKSoft
LINUX, the OS for people with an IQ over 98 :->