471,078 Members | 781 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

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

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?

Nov 9 '06 #1
1 4849
Hi,

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

Cor

<ti*****@gmail.comschreef in bericht
news:11**********************@h54g2000cwb.googlegr oups.com...
>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?

Nov 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by tmb | last post: by
reply views Thread by Sreedharan | last post: by
1 post views Thread by Nathan Sokalski | last post: by
3 posts views Thread by Nathan Sokalski | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.