From: Robert Roebling Date: Tue, 20 Jan 2009 19:57:54 +0000 (+0000) Subject: Implement simple drag X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/592883ed7e594638de70a8afe2e35ee669e55440 Implement simple drag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index b99a103b8e..2f39cbcab8 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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; }