#include "wx/dnd.h"
-#ifdef __WXGTK__
+#ifdef __WXMOTIF__
+#error Sorry, drag and drop is not yet implemented on wxMotif.
+#endif
+
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
#include "mondrian.xpm"
#endif
if ( !m_strText.IsEmpty() )
{
// start drag operation
+#ifdef __WXMSW__
wxTextDataObject textData(m_strText);
wxDropSource dragSource( textData, this );
-
-// wxDropSource dragSource( new wxTextDataObject (m_strText), this );
+#else
+ wxDropSource dragSource( new wxTextDataObject (m_strText), this );
+#endif
const char *pc;
switch ( dragSource.DoDragDrop(TRUE) )