Hi there

I was wondering if it is possible to drag something on a diagram around, with a ghost image appearing when dragging starts. This ghost image must most smoothly along the users movement and it must ignore all drag/grid settings. However, underneath the ghost image, I want the actual object that is being dragged to snap to the grid positions. This is just a nicer user experience with regards to dragging objects around on a gridded diagram…



Yes, I think that could be programmed by defining a subclass of DraggingTool and replacing the standard Diagram.toolManager.draggingTool with a new instance of this subclass. This subclass would override doActivate to create that temporary “ghost image” Part and add it to the desired layer. An override of doMouseMove would move that temporary Part along with the mouse, ignoring any grid snapping. An override of doDeactivate would just remove that temporary Part.

I’m sorry, but I don’t have time to create a sample for you now.


Thanks for the info. I will give it a try.