Scrolling the wxTreeCtrl client area when dragging tree item

Dear List,

I have a wxTreeCtrl with many items which I'd like to drag around to
change their order. The number of items is quite high that all items
will not be displayed in the same window at once. A vertical scrollbar
is automatically shown.

However, when I drag the item and the drop target is not shown in the
current client window, the client window is not automatically scrolled
up or down to show more items, which is the behavior I would like to
expect, like in Windows Explorer.

Is there any setting I should do with wxTreeCtrl to enable automatic
scrolling when items are dragged? Or if I have to implement it myself,
what's the best way to proceed?
Thanks much for helping.

···

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn

Yuan HOng wrote:

Dear List,

I have a wxTreeCtrl with many items which I'd like to drag around to
change their order. The number of items is quite high that all items
will not be displayed in the same window at once. A vertical scrollbar
is automatically shown.

However, when I drag the item and the drop target is not shown in the
current client window, the client window is not automatically scrolled
up or down to show more items, which is the behavior I would like to
expect, like in Windows Explorer.

Is there any setting I should do with wxTreeCtrl to enable automatic
scrolling when items are dragged? Or if I have to implement it myself,
what's the best way to proceed?

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:sss:50385:200604:nbfbbhifmchhgogoffma#b

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!