Connecting Tech Pros Worldwide Forums | Help | Site Map

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

timnels@gmail.com
Guest
 
Posts: n/a
#1: Nov 9 '06
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?


Cor Ligthert [MVP]
Guest
 
Posts: n/a
#2: Nov 10 '06

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


Hi,

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

Cor

<timnels@gmail.comschreef in bericht
news:1163104463.766646.190390@h54g2000cwb.googlegr oups.com...
Quote:
>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?
>

Closed Thread