Re: XForms: Mouse wheel

Steve Lamont (spl@szechuan.ucsd.edu)
Sat, 11 Apr 98 17:21:49 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have a Logitech mouse with a wheel where the middle button should
> be. I've been able to configure xterm so that the wheel does something
> useful, but I haven't had any lock with xforms applications. The main
> thing I would like the wheel to do is move the scrollbar up and down.
>
> The app-defaults entry for xterm contains this:
>
> *vt100*Scrollbar.translations: #override\n\
> <Btn5Down>: StartScroll(Forward)\n\
> <Btn4Down>: StartScroll(Backward)\n\

Since XForms is not an X Toolkit based library, setting app defaults
translations won't do much for you.

Unfortunately, as far as I can tell, XForms is only really aware of
Button[123] -- for example, in the definition of button_down:

#define button_down(mask) (((mask) & Button1Mask) || \
((mask) & Button2Mask) || \
((mask) & Button3Mask))

The best thing I can suggest is to create pre or post handler and deal
with the raw XEvent yourself.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/