]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
use 6px as the default wxSizer border in wxGTK to be a little bit closer to GNOME HIG
[wxWidgets.git] / src / generic / grid.cpp
index 688a62b8846299249e2f05e50307c7bcd9112319..00785219da1e761ef457d3bb2d9fc76f5eb0b411 100644 (file)
@@ -11110,6 +11110,20 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft,
     return rect;
 }
 
+// ----------------------------------------------------------------------------
+// drop target
+// ----------------------------------------------------------------------------
+
+#if wxUSE_DRAG_AND_DROP
+
+// this allow setting drop target directly on wxGrid
+void wxGrid::SetDropTarget(wxDropTarget *dropTarget)
+{
+    GetGridWindow()->SetDropTarget(dropTarget);
+}
+
+#endif // wxUSE_DRAG_AND_DROP
+
 // ----------------------------------------------------------------------------
 // grid event classes
 // ----------------------------------------------------------------------------