0

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?

mghie
  • 32,028
  • 6
  • 87
  • 129
Ranjith
  • 796
  • 8
  • 27

1 Answers1

1

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.

mentat
  • 2,748
  • 1
  • 21
  • 40