From owner-freebsd-stable@FreeBSD.ORG Tue Jun 3 12:04:10 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFE7837B404 for ; Tue, 3 Jun 2003 12:04:10 -0700 (PDT) Received: from reiher.informatik.uni-wuerzburg.de (wi4d22.informatik.uni-wuerzburg.de [132.187.101.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id A24C943FDF for ; Tue, 3 Jun 2003 12:04:09 -0700 (PDT) (envelope-from mkb@mukappabeta.de) Received: from mukappabeta.de (localhost [127.0.0.1]) by reiher.informatik.uni-wuerzburg.de (Postfix) with ESMTP id AD0FF5C50; Tue, 3 Jun 2003 21:05:30 +0200 (CEST) Message-ID: <3EDCF17A.2040600@mukappabeta.de> Date: Tue, 03 Jun 2003 21:05:30 +0200 From: Matthias Buelow User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030530 X-Accept-Language: de-de, de, en-gb, en-us, en MIME-Version: 1.0 To: Jason Andresen References: <3.0.6.32.20030603092428.009a7d70@transbay.net> <3EDCE4F4.7090102@mukappabeta.de> <3EDCE8EB.3080507@mitre.org> In-Reply-To: <3EDCE8EB.3080507@mitre.org> X-Enigmail-Version: 0.75.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: Wheel Mouse on FreeBSD X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 19:04:11 -0000 Jason Andresen wrote: > Matthias Buelow wrote: > >> computing@kpfa.org wrote: >> >>> ...works for Mozilla, Opera, StarOffice, but not for >>> XFmail.....Dan. >> >> >> >> It also doesn't work with Motif etc. If the toolkit doesn't have >> knowledge about using the extra "buttons" for scrolling up/down then >> there's nothing the X server can do about it. > > > Is there a way to map the wheel to page up/down keystrokes? Windows > does that sometimes. Hmm, don't know.. one thing you could do, with Xt based toolkits (Athena, OpenLook, Motif, etc.), is write translations and actions in the the app's X defaults file that, upon the respective button press (4 or 5) calls the widget's scroll-up/down action procedure, if such one exists. I've done this once for the Motif List widget and it worked reasonably well although not quite like in toolkits which have wheel-scrolling built in. For example (refer to man 3 XmList) something like the following translation should work to scroll the list down by 3 items (moving the list cursor, though, just as if the arrow-down key was pressed): : \ ListNextItem() \ ListNextItem() \ ListNextItem() I might not have gotten the syntax completely right since I don't have any Xt manual around right here but you get the idea. The translations can be specified in the app's defaults file or in your .Xdefaults globally using a string value. Many Xt-derived widgets can be programmed from the "outside" this way, including the text widget, scroll-bars etc. -- Matthias Buelow home: mkb/at/mukappabeta.de uni: mkb/at/informatik.uni-wuerzburg.de