Profile Picture

where to find the origin location

Posted By Leon Kusnezow 14 Years Ago
Author
Message
Leon Kusnezow
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 8, Visits: 1

Hi,

I use the .EventSinkService.NodeBoundsChanged event to check the place for the new position during dragging a shape.

So far it works fine. It also makes a hittest with other shapes and there I'm having trouble to find out the START-position of the dragged shape, if I want let the shape bounds back to the origin position.

For example:

I drag a shape -> the preview-shape shows me a new position:

a) if the place is free of other elements is that the new position for the shape. (works fine)

b) if the preview-shape hits an other element than jump back to the origin position. (how to find this position?)

You know this effect also from windows, if you drag a file in an unacceptable location the file stay on the origin postion.

 

I tried this in the eventfunction "Dim draggedshape As Nevron.Diagram.NShape = CType(args.Node, Nevron.Diagram.NShape)" but the location of the node is of course the current position and not the position where I started to drag the shape. 

I search something like DraggedShape.Startdragpostition or shape.position_befor_bouncing

Thanks in advance,

Leon






Similar Topics


Reading This Topic