+void MyPanel::DoGetWindowCoordinates()
+{
+ wxTextCtrl * const text = GetFocusedText();
+
+ const wxPoint pt0 = text->PositionToCoords(0);
+ const wxPoint ptCur = text->PositionToCoords(text->GetInsertionPoint());
+ *m_log << "Current position coordinates: "
+ "(" << ptCur.x << ", " << ptCur.y << "), "
+ "first position coordinates: "
+ "(" << pt0.x << ", " << pt0.y << ")\n";
+}
+