|Providing a correct MoveShapeFeature [message #1004591]
||Wed, 23 January 2013 09:06
| Cedric Moonen
Registered: August 2009
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...
Powered by FUDForum
. Page generated in 0.04494 seconds