Submitted by Anonymous on Thu, 05/17/2001 - 17:46. Developers
Hi all,
Does anyone knows of motif application that track mouse wheel events. Is there a mask available for this? I have not been able to find any reference to mouse wheel actions being supported in motif.
Thanks in advance
It has very little to do with Motif. If your X server generates events, Xt will do the translations. I use the following resources....
(Sorry about the formatting, this is about the best I can do with this web based thing)
*XmList.baseTranslations #augment ListNextPage()
ListPrevPage()
*XmScrollBar.baseTranslations #augment IncrementUpOrLeft(0) IncrementUpOrLeft(1)
IncrementDownOrRight(0) IncrementDownOrRight(1)
*XmText.baseTranslations #augment Shift page-left()
Shift page-right()
scroll-one-line-up()
scroll-one-line-down()
MGv*XmScrolledWindow*Ghostview.baseTranslations #augment mgvScroll(up, magical)
mgvScroll(down, magical)
Netscape*drawingArea.translations #replace ArmLink()
ArmLink()
~s ActivateLink()
~s ActivateLink(new-window) DisarmLink()
s ActivateLink(save-only) DisarmLink()
s ActivateLink(save-only) DisarmLink()
DisarmLinkIfMoved()
DisarmLinkIfMoved()
DisarmLinkIfMoved()
DescribeLink()
xfeDoPopup()
LineDown()
LineUp()
XTerm.vt100.translations #override ,scroll-back(1,line)
,scroll-forw(1,line)
Thanks for the response. It guided me in the right direction. It seems thought that might x server does not generate the correct event.
I debugged a small app I have and I receive xbutton.button values of 1 and 2 for upward and downward mouse wheel mouvement.
Any way I can modify this?
Thanks
At the Xlib level, you are looking for Motion events or PointerMotion. You can use Xt Event Handlers to add watchers for those events; or you can use the translation manager to add watchers.