From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: "grischka" <grishka@gmx.de>
Newsgroups: gmane.emacs.devel
Subject: Re: vertical scrollbar error on MS Windows
Date: Thu, 22 Feb 2007 00:36:24 +0100
Message-ID: <009401c75611$3782cbe0$351b90d4@j4f3n1>
References: <001401c7554e$bbd42100$2446fe91@j4f3n1>
	<jwvzm77tmwk.fsf-monnier+emacs@gnu.org>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Trace: sea.gmane.org 1172117038 22059 80.91.229.12 (22 Feb 2007 04:03:58 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Thu, 22 Feb 2007 04:03:58 +0000 (UTC)
Cc: emacs-devel@gnu.org, "Kim F. Storm" <storm@cua.dk>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 22 05:03:52 2007
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1HK5BL-0002fA-Lf
	for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 05:03:47 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1HK5BL-0000Eu-9S
	for ged-emacs-devel@m.gmane.org; Wed, 21 Feb 2007 23:03:47 -0500
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HK11H-0004e6-Vz
	for emacs-devel@gnu.org; Wed, 21 Feb 2007 18:37:08 -0500
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HK11E-0004du-SV
	for emacs-devel@gnu.org; Wed, 21 Feb 2007 18:37:07 -0500
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HK11E-0004dr-OH
	for emacs-devel@gnu.org; Wed, 21 Feb 2007 18:37:04 -0500
Original-Received: from mail.gmx.net ([213.165.64.20])
	by monty-python.gnu.org with smtp (Exim 4.52) id 1HK11E-0008RX-6u
	for emacs-devel@gnu.org; Wed, 21 Feb 2007 18:37:04 -0500
Original-Received: (qmail invoked by alias); 21 Feb 2007 23:37:02 -0000
X-Provags-ID: V01U2FsdGVkX1+mhuwulaKmgq+V1YWkzh05WvWH7fLAawDFjnWoja
	n7/A==
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Y-GMX-Trusted: 0
X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4)
X-Mailman-Approved-At: Wed, 21 Feb 2007 23:03:35 -0500
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:66597
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/66597>

Stefan Monnier wrote:

> > Here is another fix for the scrollbars.  From the approach
> > it calculates the thumb length once on mouse down and 
> > then leaves bar parameters alone during dragging.
> 
> This approach suffers from the same problems.

Not shure what you mean, works for me. 

> I only know of two simple solutions:
> 1 - set the thumb size to 0 while dragging.

Too much activity on the peripheral visuals for my taste.

> 2 - make the thumb size "fixed" and arrange that when it hits bottom,
>     then the start of the thumb corresponds to position point-max.

If you change the start position then you constantly need 
to watch it whether it's still there where you left it off. 

> The best solution is to change the toolkit such that it doesn't hide from
> you the information that the mouse was moved past the bottom of the
> scrollbar.  This is what Xaw does.  It's generally trivial to do,
> technically, but it usually hits a human brick wall.
> 
> 
>         Stefan

You mean subclass the control? Shure, why not. 

If only there wasn't one more general problem which Xaw 
(if thats what I figure) does not have because it doesn't 
have a slider, really. That is with a slider if you can 
grab it at the lower end, it means you end up pulling 
below the frame bottom and outside the monitor if the 
slider gets shorter during dragging. So ...

-- grischka