>>>>> On Fri, 28 Oct 2005 17:28:58 +0200, Michel Bardiaux <[EMAIL PROTECTED]> >>>>> said:
Michel> Found this on the web: Michel> ============================================================== Michel> Enable mouse-wheel in Motif/LessTif applications Michel> Just add these lines into your .Xdefaults -file: Michel> *XmList.baseTranslations: #augment <Btn5Down>: ListNextPage()\n\ Michel> <Btn4Down>: ListPrevPage()\n Michel> *XmScrollBar.baseTranslations: #augment <Btn4Down>: IncrementUpOrLeft(0) Michel> IncrementUpOrLeft(1)\n\ Michel> <Btn5Down>: IncrementDownOrRight(0) IncrementDownOrRight(1)\n Michel> *XmText.baseTranslations: #augment Shift<Btn4Down>: page-left()\n\ Michel> Shift<Btn5Down>: page-right()\n\ Michel> <Btn4Down>: scroll-one-line-up()\n\ Michel> <Btn5Down>: scroll-one-line-down()\n Michel> Thanks to Rick Scott (LessTif developer) for this tip. Michel> ============================================================== Michel> Now, it *works*, but I dont understand the role of the Michel> IncrementUpOrLeft(0) on scrollbar; Probably to make it work in both orientations of the scrollbar. See man XmScrollBar. Michel> or why 1 wheel click scrolls a page in XmList but 1 line in XmText. Since it is explicit in the file, it must have been the personal preference of the author I suppose. __Martin ------------------------------------------------------- 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

