Am 25.10.22 um 21:57 schrieb Rich:
saitology9 <[email protected]> wrote:
Hello,
I have a script that creates a canvas with scrollbars and and I have a
<Shift-MouseWheel> binding for it. This seems to fire on Windows but
does nothing on Linux. I am not sure if this has to do with the way the
Linux box is set up or if there is a different way of accomplishing the
same thing on Linux.
man bind:
in the "MouseWheel" section:
... On X11 vertical scrolling is rather supported through Button-4 and
Button-5 events, and horizontal scrolling through Shift-Button-4
and Shift-Button-5 events. ...
This is valid for the Tk versions 8.4 - 8.6 and 8.7a1 - 8.7a3. In Tk
versions 8.7a4 and later, the set of mouse wheel events is the same on
all windowing systems. See also the description of the scrollutil::addMouseWheelSupport command of my Scrollutil package. One
of the benefits of using this package is that it handles these technical details automatically, thus easing the development of Tk
version-agnostic applications.
--
Csaba Nemethi
https://www.nemethi.de mailto:
[email protected]
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)