[racket] Finding a GUI containee at x,y within a container

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Sep 13 01:51:37 EDT 2012

Just in case: I think you can also simulate a mouse event at (x, y) and see
what element replies, but this has a number of disadvantages compared to
Matthew's method.

Laurent

On Thu, Sep 13, 2012 at 2:05 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> There's currently no such method. You would have to search through the
> hierarchy using each window<%>'s `get-x', `get-y', and `get-size'.
>
> At Wed, 12 Sep 2012 14:17:08 -0600, Kieron Hardy wrote:
> > Hi all,
> >
> > Does anyone know what the equivalent of find-snip in pasteboard% would be
> > for containees within containers?
> >
> > I'll looking to be able to get the GUI component at a particular (x,y)
> > within a container. I thought I'd seen a function that would do what I
> > need, but in looking through the documents I can't find it.
> >
> > If there is no such function, would the best approach be to find the
> > inner-most (most-contained?) containee that has an extent covering that
> > particular (x,y)?
> >
> > Cheers,
> >
> > Kieron.
> > ____________________
> >   Racket Users list:
> >   http://lists.racket-lang.org/users
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120913/91ee5c2e/attachment.html>

Posted on the users mailing list.