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. ...
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.
saitology9 <saitology9@gmail.com> 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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 497 |
Nodes: | 16 (2 / 14) |
Uptime: | 11:55:05 |
Calls: | 9,783 |
Calls today: | 2 |
Files: | 13,748 |
Messages: | 6,187,342 |