Look of dragging items in wxTreeListCtrl vs wxTreeCtrl

I'm coding on: win XP SP2, with python 2.4.2 with wxPython 2.6.1.0

When I add begin and end drag event handlers to the TreeCtrl.py in the demo, I get a translucent representation of what is being dragged under the mouse pointer. When I add essentially the same drag handlers to the TreeListCtrl.py demo, I do not see the translucent representation underneath the mouse. Is their any way to have the same behavior in a TreeListCtrl as I see in the TreeCtrl?

Here are the drag event handlers:

         self.tree.Bind(wx.EVT_TREE_BEGIN_DRAG, self.OnBeginDrag)
         self.tree.Bind(wx.EVT_TREE_END_DRAG, self.OnEndDrag)

     def OnBeginDrag(self, event):
         event.Allow()

     def OnEndDrag(self, event):
         event.Allow()

I may certainly be wrong, but I don't think it is possible without work.
From what I understand, TreeCtrl uses the native control on Windows, and
the translucent drag effect is a result of the native control doing a
bit of work.

You may be able to emulate the effect by doing an image capture on those
items which are selected, fading them by hand, and passing the result to
whatever mechanism handles the icon.

Others on this list should be able to tell you if it is possible for
certain.

- Josiah

···

Stephen Czeck <phule@vyage.boxcar.org> wrote:

I'm coding on: win XP SP2, with python 2.4.2 with wxPython 2.6.1.0

When I add begin and end drag event handlers to the TreeCtrl.py in the
demo, I get a translucent representation of what is being dragged under
the mouse pointer. When I add essentially the same drag handlers to the
TreeListCtrl.py demo, I do not see the translucent representation
underneath the mouse. Is their any way to have the same behavior in a
TreeListCtrl as I see in the TreeCtrl?

Here are the drag event handlers:

         self.tree.Bind(wx.EVT_TREE_BEGIN_DRAG, self.OnBeginDrag)
         self.tree.Bind(wx.EVT_TREE_END_DRAG, self.OnEndDrag)

     def OnBeginDrag(self, event):
         event.Allow()

     def OnEndDrag(self, event):
         event.Allow()