Hello,
When the user moves the mouse over an object, I'm trying to do some hit-testing in my MouseMove event handler to detect when the cursor is w/i a certain distance from an edge of the object. I suspect that in the MouseEnter handler I need to store the location of the object, then in MouseMove compare
e.GetPosition(this)
to the location +/- dimensions.
How do I get the position of an object relative to the same root that e.GetPosition(this) returns its Point? e.GetPosition(this) returns a point relative to this; how can I determine if point.x is 1 pixel or 12 pixels from an edge of the containing object.
The goal is know if the mouse is w/i a certain distance of an object's edge.
Thanks for any advice.