Providing a correct MoveShapeFeature [message #1004591] |
Wed, 23 January 2013 09:06  |
Eclipse User |
|
|
|
Hello,
I'm trying to provide my own MoveShapeFeature and from what I understood by debugging (there's not too much documentation about this) the IMoveShapeContext doesn't contain any information about the mouse pointer location, but only information relative to the top-left corner of the shape being dragged.
Suppose that you drag a shape by clicking on a middle point, and you move it above another shape. What you get in the x value of the IMoveShapeContext is the position of the top-left corner of the shape at its new position relative to the top-left corner of the destination shape. So, this value can very well be in negative, which doesn't make too much sense.
What I would like to have as a value is the position of the mouse cursor relative to the top-left corner of the destination shape (to verify whether the shape can be dropped at this position on the destination shape). How can I get such a value ? Unfortunately, there is no information about the delta of the drag point (the delta between the mouse position and the top-left corner of the source shape at the beginning of the drag) in the IMoveShapeContext.
I don't know if I made myself clear enough...
|
|
|
|
|
|
|
|
Re: Providing a correct MoveShapeFeature [message #1005475 is a reply to message #1005451] |
Fri, 25 January 2013 10:32  |
Eclipse User |
|
|
|
Hi Michael,
I investigated that solution at the time but unfortunately, it didn't bring me any further because I was still not able to pass my editing domain. So I finally dropped the case and stayed with version 0.8.
I'll add some more information about the reason why I was not able to work out a solution in the other thread.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.28930 seconds