m_music_model = new MyMusicModel;
m_musicCtrl->AssociateModel( m_music_model.get() );
- m_musicCtrl->EnableDragSource( wxDF_TEXT );
- m_musicCtrl->EnableDropTarget( wxDF_TEXT );
+ m_musicCtrl->EnableDragSource( wxDF_UNICODETEXT );
+ m_musicCtrl->EnableDropTarget( wxDF_UNICODETEXT );
wxDataViewTextRenderer *tr = new wxDataViewTextRenderer( wxT("string"), wxDATAVIEW_CELL_INERT );
wxDataViewColumn *column0 = new wxDataViewColumn( wxT("title"), tr, 0, 200, wxALIGN_LEFT,
if (m_music_model->IsContainer( item ) )
event.Veto();
- if (event.GetDataFormat() != wxDF_TEXT)
+ if (event.GetDataFormat() != wxDF_UNICODETEXT)
event.Veto();
}
return;
}
- if (event.GetDataFormat() != wxDF_TEXT)
+ if (event.GetDataFormat() != wxDF_UNICODETEXT)
{
event.Veto();
return;