On second thought, this was for dTreeView to get a node under the mouse,
but it would have been really useful for other controls as well.
getControlUnderMouse() or something.

    def getControlUnderMouse(self):
        pos = self.getMousePosition()
        for c in self.Children:
            if c.posIsWithin(pos):
                return c
        return None


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Simen Haugen
Sent: 29. november 2007 10:44
To: Dabo Users list
Subject: [dabo-users] Get object at position

I seem to remember dabo having a getObjectAtPosition or something
similar for controls with children, but now I can't find anything like
that...



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to