disabling the mouse on Windows



I'm in the process of trying to fix some minor annoyances for a
customer in an application that was built with 8.0 with a custom
version of wish using the Borland compiler several years ago.

The application was built specifically not to use the mouse, but users
- all novices by definition - are nonetheless fiddling with the mouse
and changing the focus in ways that mangle the logic of the
application. Originally, there were instructions to
physically disconnect the mouse, but that's quite hard with a touchpad
on a notebook.

Ideally, I would have a nonexistent mouse cursor and disable the mouse
buttons entirely for the duration of the application. The real
problem is that users are clicking on parts of the screen in ways that
change the stacking order of the widgets, so it's the default
behaviour of a mouse click in delivering the focus that's causing the
problem. The obvious

bind all <ButtonPress-1> {}

doesn't work (whereas "bind all <Tab> {}" does).

Is there something I'm missing, or was this a bug that I'm stuck with
unless I upgrade the whole application to a later release?

--
Steve Blinkhorn <steve@xxxxxxxxx>
.


Quantcast