[lug] 3 button scroll mouse
Riggs, Rob
RRiggs at doubleclick.net
Thu Apr 4 13:53:02 MST 2002
Nedit is Motif based (linked against Lesstif).
Adding the following to ~/.nedit file is supposed to do the trick, but
doesn't for me:
!# NEdit
NEdit*text.Translations: #override\n\
Shift<Btn4Down>,<Btn4Up>: scroll_up(5)\n\
Shift<Btn5Down>,<Btn5Up>: scroll_down(5)\n\
Ctrl<Btn4Down>,<Btn4Up>: previous_page()\n\
Ctrl<Btn5Down>,<Btn5Up>: next_page(1)\n\
<Btn4Down>,<Btn4Up>: scroll_up(1)\n\
<Btn5Down>,<Btn5Up>: scroll_down(1)\n
Interesting... I added the above to ~/.Xdefaults and loaded those resources
and it works as advertised.
I wonder what I'm doing wrong in ~/.nedit.
-Rob
-----Original Message-----
From: Tkil [mailto:tkil at scrye.com]
Rob> And I still haven't figured out how to make Nedit scroll.
if it's x-based and uses a sane toolkit, it should just DTRT.
if it's x-based and doesn't use a sane toolkit, you have to find out
how to bind Button4Down and Button5Down events to
scroll-up/scroll-down.
More information about the LUG
mailing list