-// Clipboard operations
-void wxComboBox::Copy()
-{
- XmTextCopy( GetXmText(this), CurrentTime );
-}
-
-void wxComboBox::Cut()
-{
- XmTextCut( GetXmText(this), CurrentTime );
-}
-
-void wxComboBox::Paste()
-{
- XmTextPaste( GetXmText(this) );
-}
-
-void wxComboBox::SetEditable(bool WXUNUSED(editable))
-{
- // TODO
-}
-
-void wxComboBox::SetInsertionPoint(long pos)
-{
- XmTextSetInsertionPosition( GetXmText(this), (XmTextPosition)pos );
-}
-
-void wxComboBox::SetInsertionPointEnd()
-{
- SetInsertionPoint( GetLastPosition() );
-}
-
-long wxComboBox::GetInsertionPoint() const
-{
- return (long)XmTextGetInsertionPosition( GetXmText(this) );
-}
-
-wxTextPos wxComboBox::GetLastPosition() const
-{
- XmTextPosition pos = XmTextGetLastPosition( GetXmText(this) );
- return (long)pos;
-}
-
-void wxComboBox::Replace(long from, long to, const wxString& value)
-{
- XmTextReplace( GetXmText(this), (XmTextPosition)from, (XmTextPosition)to,
- wxConstCast(value.mb_str(), char) );
-}
-
-void wxComboBox::Remove(long from, long to)
-{
- SetSelection( from, to );
- XmTextRemove( GetXmText(this) );
-}
-
-void wxComboBox::SetSelection(long from, long to)
-{
- if( to == -1 )
- to = GetLastPosition();
-
- XmTextSetSelection( GetXmText(this), (XmTextPosition)from,
- (XmTextPosition)to, (Time)0 );
-}
-