set drop target on panel if present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1038,7 +1038,10 @@ class XML_Tree(wx.TreeCtrl):
|
|||||||
wx.EVT_CLOSE(testWin, self.OnCloseTestWin)
|
wx.EVT_CLOSE(testWin, self.OnCloseTestWin)
|
||||||
wx.EVT_SIZE(testWin, self.OnSizeTestWin)
|
wx.EVT_SIZE(testWin, self.OnSizeTestWin)
|
||||||
# Add drop target
|
# Add drop target
|
||||||
testWin.SetDropTarget(DropTarget())
|
if testWin.panel:
|
||||||
|
testWin.panel.SetDropTarget(DropTarget())
|
||||||
|
else:
|
||||||
|
testWin.SetDropTarget(DropTarget())
|
||||||
# Reset highlights
|
# Reset highlights
|
||||||
testWin.highLight = testWin.highLightDT = None
|
testWin.highLight = testWin.highLightDT = None
|
||||||
if highLight and not self.pendingHighLight:
|
if highLight and not self.pendingHighLight:
|
||||||
|
Reference in New Issue
Block a user