Creating a Multi-Select Treeview that supports drag/drop event problem

T

timnels

I have created a muti-select treeview control. Problem is I am now
trying to implement drag/drop in the application that uses it. It
seems the mouse down and mouse move events fire before the
OnBeforeSelect and OnAfterSelect events in the treeview. Since I want
to start the drag/drop on the mouse move event, I have no clue that the
current node has been selected yet. I tried moving all the code into
the mouse down event (which actually works well), except that when I
click to start the drag the code unselects all the control-click
selected nodes... since it can't tell whether the mouse down was to
select a node or to start a drag drop. Any ideas on how to tackle it?
 
C

Cor Ligthert [MVP]

Hi,

Mostly I set just switches when I am working with mousedown and moving
actions of that.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top