From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: vertical scrollbar error on MS Windows Date: Mon, 26 Feb 2007 14:39:41 -0500 Message-ID: References: <001401c7554e$bbd42100$2446fe91@j4f3n1> <009401c75611$3782cbe0$351b90d4@j4f3n1> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172518812 19609 80.91.229.12 (26 Feb 2007 19:40:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2007 19:40:12 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" To: "grischka" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 20:40:06 2007 Return-path: 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 1HLlhd-0005ch-FJ for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2007 20:40:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLlhc-0001FA-TL for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2007 14:40:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HLlhQ-0001Et-JJ for emacs-devel@gnu.org; Mon, 26 Feb 2007 14:39:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HLlhO-0001Ee-68 for emacs-devel@gnu.org; Mon, 26 Feb 2007 14:39:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLlhN-0001EU-TS for emacs-devel@gnu.org; Mon, 26 Feb 2007 14:39:49 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HLlhN-0004W8-JY for emacs-devel@gnu.org; Mon, 26 Feb 2007 14:39:49 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 5F47F2CF2EA; Mon, 26 Feb 2007 14:39:49 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 8A3603FE0; Mon, 26 Feb 2007 14:39:41 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 77E796C1AD; Mon, 26 Feb 2007 14:39:41 -0500 (EST) In-Reply-To: <009401c75611$3782cbe0$351b90d4@j4f3n1> (grischka's message of "Thu\, 22 Feb 2007 00\:36\:24 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:66866 Archived-At: >> > 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. The other code works as well. But there are problems in some circumstances. BTW, if changing the thumb during drag-scroll causes jitter, an alternative to "no resize" is to only allow resize in one direction (typically: only shrink). >> 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. No, you don't understand what I mean. Just change the way thumb positions are mapped to buffer positions. Say your scrollbar has size 130, and you choose thumbsize of 30, then position 0-30 is "window-start == point-min", and position 100-130 is "window-start == point-max". > 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 ... If I understand correctly what you mean, then the Xaw behavior is exactly what we want. That leaves it to the application to decide whether the thumb can "slide past the end" or not. A slider that slides past the end is not a problem, really. You seem to dislike it, could you explain why? Stefan