Hi~
I am coding the drag drop of the diagram.
The left side of the screen is the editControl.
Select text in editcontrol and drag it to diagram. Then a node is created.
It would be nice if we could know the position value of the mouse like MouseEvent, but unfortunately there is no mouse position value in DragEvent.
I couldn't even find it in the diagram object.
So I made a calculation formula with the found values.
int x = e.X - diagram1.AccessibilityObject.Bounds.Location.X + (int)diagram1.Origin.X;
int y = e.Y - diagram1.AccessibilityObject.Bounds.Location.Y + (int)diagram1.Origin.Y;
It works well.
But when you zoom, the calculation is wrong.
I think it's because of the origin value.
Is there a way to know the last mouse position value regardless of zoom?