Constantin,

Using beak, or "return -code break" in a procedure, for
an event binding will just terminate the binding sequence
for that widget.

My interpretation of Tk's event mechanism is that events
are propagated up the widget heirarchy. This means that an
event generated for the Image widget will also be seen by
the parent Canvas widget.

In the event handling code for the Canvas widget you could
check for the source of the event (%W) being the Canvas
and only perform the required actions if this condition is
true.

HTH,
Neil Darlow.




---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to