X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/110da5b02e6d10ed8a94934934f87882ba33d2e1..03837c5c878d3e612e9c80dc46f37def0a0835d9:/wxPython/src/msw/_controls.py diff --git a/wxPython/src/msw/_controls.py b/wxPython/src/msw/_controls.py index d5f6445ff6..24a8e95fa0 100644 --- a/wxPython/src/msw/_controls.py +++ b/wxPython/src/msw/_controls.py @@ -1757,11 +1757,22 @@ class TextCtrl(_core.Control): """ HitTest(Point pt) -> (result, row, col) - Find the character at position given in pixels. NB: pt is in device - coords but is not adjusted for the client area origin nor scrolling + Find the row, col coresponding to the character at the point given in + pixels. NB: pt is in device coords but is not adjusted for the client + area origin nor scrolling. """ return _controls_.TextCtrl_HitTest(*args, **kwargs) + def HitTestPos(*args, **kwargs): + """ + HitTestPos(Point pt) -> (result, position) + + Find the character position in the text coresponding to the point + given in pixels. NB: pt is in device coords but is not adjusted for + the client area origin nor scrolling. + """ + return _controls_.TextCtrl_HitTestPos(*args, **kwargs) + def Copy(*args, **kwargs): """Copy(self)""" return _controls_.TextCtrl_Copy(*args, **kwargs)