NTreeViexEx node stays Hot


Author
Message
Imanol Yurrebaso
Imanol Yurrebaso
Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)
Group: Forum Members
Posts: 15, Visits: 3
I'm having another issue with the NTreeViewEx. I'll try to explain it simple to avoid posting a big chunk of code.

We are performing a DragDrop operation programmatically when certain event happens, like this:

((NTreeViewEx)sender).DoDragDrop(data, DragDropEffects.Copy);

The action is performed as intended, but when I take the mouse cursor back to the NTreeViewEx, the nodes don't show as Hot when hovering. Then, after clicking another node, the previously selected node goes into Hot state, and it won't go away until I hover that node with the mouse.

I attached some screenshots to show the problem:

1: after the dragdrop operation, hovering other nodes doesn't activate Hot state.
2: cliking another node will make the previous node stay Hot, until I hover over it with the mouse.
3: it happens to every node where I perform the DragDrop operation, until I hover them with the mouse.

Even if I iterate the nodes and set the visual state of the Hot ones to Normal, it won't go away until I hover them. If I refresh the node, I would lose the selected one.

It is a serious problem, as sometimes we catch the Selected node for some operations, and other times we catch the Hot node for other operations, so we should be able to fix it.

Thanks in advance.
Attachments
captura1.png (386 views, 20.00 KB)
captura2.png (403 views, 23.00 KB)
captura3.png (389 views, 23.00 KB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Imanol,

When you want to make drag and drop functionality in NTreeViewEx you only need to set ItemDragDropMode to some of the predefined values.
Then you can attach to the following events: ItemBeginDrag, ItemDrag and ItemDragComplete.

Is this the pattern you use?
If so, could you describe what are you doing in the event handlers to experience this problem.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search