On Nov 29, 2007, at 4:49 AM, Simen Haugen wrote:

> 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

        dabo.ui.getMouseObject()

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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