|
-
December 21st, 2008, 02:57 AM
#1
How to detect where a DragDrop operation was intitiaited?
Here is my situation:
Code:
__ ____
/ \ | |
| | | |
\ __ / |___ |
Custom ListView
Control
There are six positions on the custom control (wheel) which can be filled by dragging an item from the list. You can drag these objects in any way, i.e., list to wheel, wheel to wheel, list to list, wheel to list. When an object is dragged from the wheel to the list it should be removed from the wheel and it's position value in the list updated (as it is whenever an object is moved around).
The problem is, a drag drop operation is initiated OnMouseDown. So, when you click an item in the list that is currently in the wheel, it is removed from the wheel and its position set to 0 in the list. The objects being dragged around are the same, so I cannot differentiate by the type. I have some things that would work, but I think they are kind of ugly (like packing this information with the object being dragged around).
If there was an event that was fired when a DragDrop operation ended (regardless of whether it was successful or not) that could be used to set a flag, but I don't know of an event like that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|