Menu

#151 clicking +/- button to expand/collapse doesn't always work

C#_v2.8.1
wont-fix
None
1
2015-12-23
2015-10-26
WolfMM
No

Hi,

I have found a problem with expanding/collapsing TreeListView. You can reproduce it with ObjectListViewDemo. Go to TreeListView tab and click +/- button on most top node (in this case to C:\ directory) multuple times. When you doing it many times it can happen that when node is collapsed, you expect that it will be expanded but it is not. Same story with collapsing. Subsequent click does what it should, but after a few more clics it doesn't work.

I have found that sometimes instead toggling expansion CellClick Event is fired. In my app I had to handlie this case, so underlying cell is not clicked when in fact I click +/i (expand/collapse) button.

When I put a breakpoint in TreeListView::ProcessLButtonDown inside if (hti.HitTestLocation == HitTestLocation.ExpandButton) I can't reproduce this issue. Only when no breakpoints are set which could interrupt this click events.

Regards
W.

Discussion

  • Phillip Piper

    Phillip Piper - 2015-11-01

    I can't seem to replicate this problem on the demo.

    Clicking rapidly doesn't always work to expand/collapse a branch because Windows interprets some of those clicks as double-clicked.

    Rather than breakpoints, put Debug.WriteLines to see what is actually happening.

     
  • Phillip Piper

    Phillip Piper - 2015-11-29

    Are you still experiencing this problem?

    If so, can you provide any further details about how to reproduce.

    If not, I will close this issue.

     
  • Phillip Piper

    Phillip Piper - 2015-12-23

    Unable to reproduce.

     
  • Phillip Piper

    Phillip Piper - 2015-12-23
    • status: open --> wont-fix
     

Log in to post a comment.