override SetDropTarget() in wxGrid to associate it with wxGridWindow as this is what things tend to be dropped on (patch 1903103)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1628,6 +1628,10 @@ public:
|
|||||||
virtual wxWindow *GetMainWindowOfCompositeControl()
|
virtual wxWindow *GetMainWindowOfCompositeControl()
|
||||||
{ return (wxWindow*)m_gridWin; }
|
{ return (wxWindow*)m_gridWin; }
|
||||||
|
|
||||||
|
// ------- drag and drop
|
||||||
|
#if wxUSE_DRAG_AND_DROP
|
||||||
|
virtual void SetDropTarget(wxDropTarget *dropTarget);
|
||||||
|
#endif // wxUSE_DRAG_AND_DROP
|
||||||
|
|
||||||
// ------ For compatibility with previous wxGrid only...
|
// ------ For compatibility with previous wxGrid only...
|
||||||
//
|
//
|
||||||
|
@@ -11110,6 +11110,20 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft,
|
|||||||
return rect;
|
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
|
// grid event classes
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user