[wxPython-users] Actual html cell coordinates
Robin Dunn
robin at alldunn.com
Thu Jan 4 10:59:50 PST 2007
Morton Publications wrote:
> Robin,
>
> Thank you very much for your help with the popup windows. The
> OnMouseHover event works better than the Motion event.
>
> I have another question, however. How can I obtain the actual
> ScreenPosition or html.Window position of the mouse when it hovers over
> a cell? GetPoint seems to only return the coordinates within the cell,
> and GetPosX(Y) seems to return the cell coordinates within the
> ContainerCell, but neither give actual fixed coordinated from which I
> can consistantly place a popup. Do I need to get a mouse event in there,
> somewhere. Or is there another way.
cell.GetAbsPos() should give you the absolute position of the cell in
the HtmlWindow, and you can use the x and y values as an offset from
that position. Or you could call wx.GetMousePosition() to get the
current screen position of the cursor.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list