implemented HitTest() for GTK2; test it in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2952,6 +2952,18 @@ wxTextCtrlHitTestResult wxTextCtrl::HitTestLine(const wxString& line,
|
||||
return res;
|
||||
}
|
||||
|
||||
wxTextCtrlHitTestResult wxTextCtrl::HitTest(const wxPoint& pt, long *pos) const
|
||||
{
|
||||
wxTextCoord x, y;
|
||||
wxTextCtrlHitTestResult rc = HitTest(pt, &x, &y);
|
||||
if ( rc != wxTE_HT_UNKNOWN && pos )
|
||||
{
|
||||
*pos = XYToPosition(x, y);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
wxTextCtrlHitTestResult wxTextCtrl::HitTest(const wxPoint& pos,
|
||||
wxTextCoord *colOut,
|
||||
wxTextCoord *rowOut) const
|
||||
|
Reference in New Issue
Block a user