I’m looking at implementing functionality where I have a palette of icons and a main diagram. I want to be able to drag a copy of an icon from the palette onto the diagram (leaving the original icon on the palette).
I’ve a number of questions related to aspects of acheiving this…
a) is it possible that when I start dragging the icon in the palette, for the cursor to show the icon I’m dragging. Currently it shows the ‘Not allowed’ icon.
b) when the mouse cursor crosses over onto the diagram, the offset of the mouse pointer from the icon is different from when I started dragging it. e.g. I click on the center of an icon in the palette and drag it to the diagram. When it is over the diagram, the cursor appears to positioned in the top-left corner of the icon. I’d like the relative position of the pointer to remain the same in the palette and the diagram.
c) if I drag an icon from the diagram back onto the palette, when the cursor leaves the diagram, the dragged image is left showing at the edge of the diagram until I drop the icon.