treectrl scroll

Hi All,

can I make treectrl scroll on drag…ie when I try drag and drop a file object on to my tree control and the destination node is not visible ,I want the control to scroll…

any help

cheers

···

Thomas Thomas

phone +64 7 855 8478
fax +64 7 855 8871

Thomas Thomas wrote:

Hi All,
can I make treectrl scroll on drag..ie when I try drag and drop a file object on to my tree control and the destination node is not visible ,I want the control to scroll..

It's usually done something like this: Capture the mouse while dragging, and when the cursor moves outside of the bounds of the window start a timer. When the timer expires if the mouse is still outside of the bounds of the window scroll the window by one step and then reset the timer.

···

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