DraggingObject isn’t intended to be a “when A is dragged, make it look like a B”.
When used in conjuntion with DragsNode=true, it is a way for having a part of a node (like a label) drag the "parent" (or higher) that is the actual node.
[QUOTE=Jake]DraggingObject isn’t intended to be a “when A is dragged, make it look like a B”.
When used in conjuntion with DragsNode=true, it is a way for having a part of a node (like a label) drag the “parent” (or higher) that is the actual node.
Are you working with a node, or a simple shape?[/quote]
I see. I am currently using it to basically display something that represents the object as this works better visually in this case…
OK, does the node have links that you want updated in real time as the object drags? I’m thinking that it’s probably easiest to add a feature to the node that allows it to be called to change appearance, then do a custom GoToolDragging that calls the node to tell it when dragging starts and stops.
What node class are you using? Can you provide screenshots of what you'd like the node to look like in the 2 states?
I believe I have got what I need working by override the DoDragging method on a custom GoToolDragging. It then looks at the CurrentObject (or DragSelectionOriginalObject) and if it is of the type I’m interested in I call ComputeMove using the LastInput.DocPoint.