| Did you know ... | Search Documentation: |
| device<-find |
|event],
condition=[code] -> graphicallocal graphical overlapping with at
for which
condition succeeds.
This methods uses a similar search technique as used by
device->event
and is first of all intended to help writing gestures that have to
relate two graphical
objects, possibly not placed on the same device
object. Examples are class connect_gesture
or a drag-and-drop gesture.
device<-find
performs the following steps:
<-graphicals
from tail to head (i.e. starting at the
topmost graphical). For each graphical:at is given and graphical->in_event_area
fails Continue with the next graphical<-find
on the device. Return with the result if any.
The following example finds a graphical that defines the send-method
drop in the same window as where the event occurred:
...
get(@event?window, find, @event,
message(@arg1, has_send_method, drop), Gr),
...