From xemacs-m  Wed Jan 15 22:13:50 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id WAA25975 for <xemacs-beta@xemacs.org>; Wed, 15 Jan 1997 22:13:49 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id UAA32062; Wed, 15 Jan 1997 20:23:40 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: slider_size in scrollbar structure, jumpProc callback
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 15 Jan 1997 20:23:37 -0800
Message-ID: <m2g202ckom.fsf@altair.xemacs.org>
Lines: 34
X-Mailer: Red Gnus v0.81/XEmacs 20.0

I'm trying to track down some undesirable behavior in the Athena
widget scrollbar code and I've found two problems.

1.  The slider_size field doesn't get updated when drag scrolling, and
    it changes based on the percentage of characters currently
    displayed.  Thus, if the user is at the top of a buffer, and the
    top few lines is denser than the bottom, dragging down to the
    bottom stops short, since the thumb never changes size.  Executing
    recenter correctly resets the thumb at this point and the bottom
    of the buffer can be reached.  What minimal code do I need to
    insert to force thumb size recalculation?

2.  The value returned by the jumpProc callback is not returning
    values in the range 0..1.0, it's returning something like 0..0.95,
    which is apparently the distance from the top of the thumb (not
    the bottom) regardless of where the mouse is clicked.  Is this a
    bug in the Athena 3d library, or should it be able to return
    values all the way to 1.0?

I can live with one of these problems, but combining both makes
scrolling down to the bottom of a buffer quite painful.

If I enable the dragging code in scrollbar-x.c for Lucid and Motif
scrollbars, the scrollbar can be scrolled down to the bottom of the
buffer, but when it's dragged down to the bottom, it doesn't stop, it
flickers :-(.  Also, there appears to be some problem with how the
starting pixel locations are stored, because the first scrollbar gets
painted correctly, but subsequent scrollbars do not get their origins
set correctly (usually to absolute location 0,0 -- right on top of the
menubar :-( ).
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
Today's environment is 20.0 XEmacs Lucid (beta91) and Red Gnus v0.81

