- XmTextSetSelection ((Widget) m_mainWidget, (XmTextPosition) from, (XmTextPosition) to,
- (Time) 0);
-}
-
-void wxTextCtrl::WriteText(const wxString& text)
-{
- long textPosition = GetInsertionPoint() + strlen (text);
- XmTextInsert ((Widget) m_mainWidget, GetInsertionPoint(),
- wxConstCast(text.c_str(), char));
- XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
- SetInsertionPoint(textPosition);
- XmTextShowPosition ((Widget) m_mainWidget, textPosition);
- m_modified = TRUE;
-}
-
-void wxTextCtrl::AppendText(const wxString& text)
-{
- long textPosition = GetLastPosition() + text.length();
- XmTextInsert ((Widget) m_mainWidget, GetLastPosition(),
- wxConstCast(text.c_str(), char));
- XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
- SetInsertionPoint(textPosition);
- XmTextShowPosition ((Widget) m_mainWidget, textPosition);
- m_modified = TRUE;
-}
-
-void wxTextCtrl::Clear()
-{
- XmTextSetString ((Widget) m_mainWidget, "");
- m_modified = FALSE;