X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a001823c80ceb1e9ac518350e1e9467299b66950..91a40e94b9efe799e401638edf84e75d3285d11b:/wxPython/src/mac/_controls.py?ds=inline diff --git a/wxPython/src/mac/_controls.py b/wxPython/src/mac/_controls.py index 1f087881b5..063ba32b2b 100644 --- a/wxPython/src/mac/_controls.py +++ b/wxPython/src/mac/_controls.py @@ -1753,11 +1753,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)