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?

4

1 回答 1

1

据我所知,你应该手动完成。从 wxTreeCtrl 派生一个类,重写相关方法来捕获鼠标拖动事件。然后在拖动到顶部/底部时手动调用合理量的滚动功能。

于 2009-04-21T19:08:16.500 回答