Found this on the web:
==============================================================
Enable mouse-wheel in Motif/LessTif applications
Just add these lines into your .Xdefaults -file:
*XmList.baseTranslations: #augment <Btn5Down>: ListNextPage()\n\
<Btn4Down>: ListPrevPage()\n
*XmScrollBar.baseTranslations: #augment <Btn4Down>: IncrementUpOrLeft(0)
IncrementUpOrLeft(1)\n\
<Btn5Down>: IncrementDownOrRight(0) IncrementDownOrRight(1)\n
*XmText.baseTranslations: #augment Shift<Btn4Down>: page-left()\n\
Shift<Btn5Down>: page-right()\n\
<Btn4Down>: scroll-one-line-up()\n\
<Btn5Down>: scroll-one-line-down()\n
Thanks to Rick Scott (LessTif developer) for this tip.
==============================================================
Now, it *works*, but I dont understand the role of the
IncrementUpOrLeft(0) on scrollbar;
or why 1 wheel click scrolls a page in XmList but 1 line in XmText.
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[EMAIL PROTECTED]
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Lesstif-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss