Re: item id within a bind procedure?

From: Ron Stanonik <stanonik_at_cogsci.ucsd.edu>
Date: Fri, 5 May 2000 13:11:17 -0700

  Can a bind procedure determine the id of the canvas item which
  triggered the event? The |W| parameter provides the canvas pathname,
  but there doesn't seem to be a corresponding parameter to provide
  the item id.

The 'current tag is added to an item when the mouse moves over it
and removed from the item when the mouse moves out of it.
Here's a binding which centers the item when the mouse moves over it.

(define (center |W|) (|W| 'center (car (|W| 'find 'withtag 'current))))

Ron
stanonik_at_cogsci.ucsd.edu
Received on Fri May 05 2000 - 22:11:35 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST