]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement simple drag
authorRobert Roebling <robert@roebling.de>
Tue, 20 Jan 2009 19:57:54 +0000 (19:57 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 20 Jan 2009 19:57:54 +0000 (19:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index b99a103b8e6144593467f24dff0555ab7a8fe74f..2f39cbcab82a87d4d6a261bb41ceb753df63dd09 100644 (file)
@@ -46,6 +46,7 @@
 #include "wx/listimpl.cpp"
 #include "wx/imaglist.h"
 #include "wx/headerctrl.h"
+#include "wx/dnd.h"
 
 //-----------------------------------------------------------------------------
 // classes
@@ -3023,8 +3024,12 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
             if (!obj)
                 return;
         
-            wxPrintf( "success\n" );
-            // m_dragDataObject = obj;
+            wxDropSource drag( m_owner );
+            drag.SetData( *obj );
+            // wxImage image( 80, 20 );
+            // wxBitmap bitmap( image );
+            wxDragResult res = drag.DoDragDrop();
+            delete obj;
         }
         return;
     }