If the TreeCtrl has more items than fit within the screen space allocated, it gets a vertical scroll bar.
However, if you then try to drag'n'drop one item, it will not automatically scroll the contents to allow you to drop onto another item that wasn't within the visible screenful.
Is there a setting to make that scrolling happen ?
Or any suggestions on how to do it myself ? (without losing the visual feedback during drag'n'drop) ?
If the TreeCtrl has more items than fit within the screen space
allocated, it gets a vertical scroll bar.
However, if you then try to drag'n'drop one item, it will not
automatically scroll the contents to allow you to drop onto another item
that wasn't within the visible screenful.
Is there a setting to make that scrolling happen ?
Or any suggestions on how to do it myself ? (without losing the visual
feedback during drag'n'drop) ?
There's another wiki page about exactly that issue. I can't access the page
right now since the http://wiki.wxpython.org/index.cgi/TreeControls page has an
error. Can someone fix that?
Briefly it works like that:
You have to catch mouse motion events of the treectrl and when the mouse leaves
the treectrl, start a timer. In the time event handler check if the mouse is
still outside and scroll the view. On linux scrolling doesn't work like
described in the wxwidgets api. Search for an old posting from Robin about how
to achieve that.