This question is locked. New answers and comments are not allowed.
Hi
I have an issue when starting a drag and drop on a control.
I have a control which has a title bar, which is used as the drag zone. When dragging, I generate a Writeable bitmap of the control to use as the DragCues image source (done in OnDragInfo event handler).
Sometimes, normally when moving your mouse (fairly quickly) before clicking and dragging the control, the DragCue is positioned where your mouse has moved to after the click, but the mouse cursor is reset to the center of the DragCue. This only seems to happen when moving the cursor up. Doing the same down, left and to the right, the cursor and DragCue are positioned as expected.
It could have something to do with the generation of the bitmap taking some time, and once complete, the mouse has moved, and so the DragCue is positioned when the mouse currently is. But the mouse is reset to the middle of the DragCue for some reason?
Hope this is clear.
Thanks in advance,
Greg
I have an issue when starting a drag and drop on a control.
I have a control which has a title bar, which is used as the drag zone. When dragging, I generate a Writeable bitmap of the control to use as the DragCues image source (done in OnDragInfo event handler).
Sometimes, normally when moving your mouse (fairly quickly) before clicking and dragging the control, the DragCue is positioned where your mouse has moved to after the click, but the mouse cursor is reset to the center of the DragCue. This only seems to happen when moving the cursor up. Doing the same down, left and to the right, the cursor and DragCue are positioned as expected.
It could have something to do with the generation of the bitmap taking some time, and once complete, the mouse has moved, and so the DragCue is positioned when the mouse currently is. But the mouse is reset to the middle of the DragCue for some reason?
Hope this is clear.
Thanks in advance,
Greg