Add wxTextCtrl::PositionToCoords() functions for wxMSW and wxGTK.
The new method allows to find the coordinates in pixels of the given character in a text control. Closes #13221. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1084,6 +1084,19 @@ wxTextAreaBase::HitTest(const wxPoint& WXUNUSED(pt), long * WXUNUSED(pos)) const
|
||||
return wxTE_HT_UNKNOWN;
|
||||
}
|
||||
|
||||
wxPoint wxTextAreaBase::PositionToCoords(long pos) const
|
||||
{
|
||||
wxCHECK_MSG( IsValidPosition(pos), wxDefaultPosition,
|
||||
wxS("Position argument out of range.") );
|
||||
|
||||
return DoPositionToCoords(pos);
|
||||
}
|
||||
|
||||
wxPoint wxTextAreaBase::DoPositionToCoords(long WXUNUSED(pos)) const
|
||||
{
|
||||
return wxDefaultPosition;
|
||||
}
|
||||
|
||||
#else // !wxUSE_TEXTCTRL
|
||||
|
||||
// define this one even if !wxUSE_TEXTCTRL because it is also used by other
|
||||
|
Reference in New Issue
Block a user