goal: use extra mouse buttons b:8 and b:9 in Lazarus 1.5 latest via FPCup
this was now fixed in LCL for gtk2 targets. extra buttons are handled OK in any gtk2 target in Linux-64bit, IMHO, i.e. in any app compiled with Lazarus for a gtk2 64bit target.
reedit:
it works in today's revision.
drewski made a cool patch
see
http://wiki.lazarus.freepascal.org/IDE_Window:_EditorMouseOptionsAdvanced#Current_Limitations Current Limitations
Extra Mouse Buttons (Button 4 and 5) work in Windows only // updated by now.
OS dependent: some clicks dont get through to Lazarus
but you'll still
find a trick in this post:
in KDE, you
can indeed use the extra mouse buttons directly,
or even trick some KDE apps into believing they received keypresses of your choosing by mapping those extra buttons.
mind you: HOMEdir/.xbindkeysrc is a simple config textfile. After reedit: killall xbindkeys followed by xbindkeys will put it in effect straight away.
############################################################
the original thread was written when xtra mouse buttn did not work - mind you
Lazarus / tools / options / mouse / "mouse extra 1" or 2 has no effect : no action is ever executed when extra mouse buttons are hit
using xte 'key F12' keypress-faking in ~/.xbindkeysrc like
#works ! mouse-extra-uparrow --> xterm = ALT-F12
"xterm"
m:0x8 + c:96
Alt + F12
# mouse-extra-uparrow ALT-F12
"xte 'keydown Alt_L' 'key F12' 'keyup Alt_L'"
b:9
this works in Kubuntu Desktop. In Lazarus, only a "real key" ALT-F12 gets executed, but not the "fake mouse-driven" ALT-F12 surrogate, which works otherwise in KDE.
So I can't find a way to use the extra mouse buttons in Lazarus - unless I start debugging the IDE to fix it.
Any pointer, maybe?