Drag and drop to mouse point location
-
Hi I would like to drag my contact(in icon view) to any location point by mouse. The behavior is same as icon view, without auto arrange and without align to grid in window explorer. I found all drag and drop example use index to represent location and the drop is to nearest location(by index). Anyone know how to implement it? Thanks first. Regards, PeiYang
-
Hi I would like to drag my contact(in icon view) to any location point by mouse. The behavior is same as icon view, without auto arrange and without align to grid in window explorer. I found all drag and drop example use index to represent location and the drop is to nearest location(by index). Anyone know how to implement it? Thanks first. Regards, PeiYang
As no-one has answered your question, I'll have a go. Take a look at Control.MousePosition and see if that helps you. Good Luck.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
As no-one has answered your question, I'll have a go. Take a look at Control.MousePosition and see if that helps you. Good Luck.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
Thanks. I already have a look on Control.MousePosition. I can get the mouse position but i can't drop it at the specific location. All example that i found is: 1. Get the drag item detail and index when drag. 2. Get the mouse position when drop. 3. Base on mouse position, the application convert the mouse position to index. Every index represent a rectangle. Any point in the rectangle will use same index. 4. The item will insert at the rectangle represent by the index. The function that i found all will draw or insert picture base on index and not actual mouse position. It need to pass in index and not mouse position. So, anyone have any suggestion? Regards, Pei Yang