Date: Tue, 03 Jun 2003 21:05:30 +0200 From: Matthias Buelow <mkb@mukappabeta.de> To: Jason Andresen <jandrese@mitre.org> Cc: freebsd-stable@freebsd.org Subject: Re: Wheel Mouse on FreeBSD Message-ID: <3EDCF17A.2040600@mukappabeta.de> In-Reply-To: <3EDCE8EB.3080507@mitre.org> References: <3.0.6.32.20030603092428.009a7d70@transbay.net> <3EDCE4F4.7090102@mukappabeta.de> <3EDCE8EB.3080507@mitre.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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): <Btn5Down>: \ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EDCF17A.2040600>