#35 scrolling for wxtreelistctrl

pending-rejected
5
2011-12-28
2011-11-01
Anonymous
No

it may be a good idea to allow automatic scrolling like windows explorer, where dragging an object abovethe top or under the bottom of the visible part of a tree will trigger scrolling as long as the cursor does not come back in the tree window.

it may help, that using scrollto may work. the only small flaw is with this method, the dragged item is initialized in onbeingdrag amd the same variable will be saved over and over as long as its out of the window. the flaw is whenever the cursor enter the window again, onbeingdrag gets called again, thus reinitializing the item again.
This can be seen when trying to drag an item from the top to all the way to the bottom and enter the window and go to the top. whats going to happen is after re etnering the item will jump straight to the top.

Thank you

Discussion

  • Ronan Chartois
    Ronan Chartois
    2011-11-22

    • assigned_to: nobody --> pgriddev
    • status: open --> open-accepted
     
  • Ronan Chartois
    Ronan Chartois
    2011-11-22

    pretty common feature => Accepted (but implementation might take a while...)
    note that the behavior will have to be configurable: in some applications the intent might actually be to drag an item *outside* the control

     
  • Ronan Chartois
    Ronan Chartois
    2011-12-28

    • status: open-accepted --> pending-rejected
     
  • Ronan Chartois
    Ronan Chartois
    2011-12-28

    Sorry, after looking at this again I changed my mind:
    - as mentioned in the previous comment, the behavior is application-specific (in some applications dragging an item outside the control is really meant to move or copy that item). The behavior should therefore be coded by the application
    - implementing the feature implies processing of all [mouse] events normally not dispatched to the control. I think that a control should not do this: it is an application or OS job to coordinate between a control and the rest of the environment
    ==> feature rejected