views:

195

answers:

1

I have a wxTreeCtrl widget with scroll bars, where I want to drag and drop items on other items. But when I drag an item, how can I make the control automatically scroll invisible items into view?

+1  A: 

As far as I know, you should do it manually. Derive a class from wxTreeCtrl, override relevant methods to capture mouse drag event. Then manually call scroll function with a reasonable amount when the dragging is at the top/bottom.

Koray Balci