Move Shape - get new lat lon.

This is a discussion on Move Shape - get new lat lon. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello people,
using VB6 here with MapPoint Control (MP 2002 iirc)
I let the user draw an autoshape. I then ...

Move Shape - get new lat lon.

Hello people,

using VB6 here with MapPoint Control (MP 2002 iirc)

I let the user draw an autoshape. I then save this info for later retrieval to reshow the autoshape exactly as they placed it. The problem is - if a user moves this autoshape ? I am finding it difficult to get the new coords.

If I use SelectionChange event - and inside that determine that it is a shape object ? I don't seem to get the lat lon passing pNewSelection.Location off as a new temporary Location object to the Calc function. I thought, ok, I'll set a boolean here local to the form, and then on MapPointControl MouseUp I'll check to see if I'm on a MouseUp coming from a Shape SelectionChange.

Still no new coords by grabbing the designated shape object's .Location and setting a new temp location object and passing THAT onto Calc function.

Re: Move Shape - get new lat lon.

I let the user create shapes/poly etc, let's just say they choose Rectangle.

They click on the map, and grab on mouseDown - coords, calc the lat lon, and I place a shape - let's just say over city X (rectangle being, oh let's just say 20 miles)

Now, they highlight that shape

click and drag it - to move it to the NEXT town over, or really, let's just say - somewhere else... maybe 50 miles away

Now, when I go to let them Save that shape ?

and I reload it ? it's showing up over the first city - or where it was initially placed.

So, on SelectionChange, I get pNewSelection and I do the Wilfried test on assigning it to a shape - if not null- I know it's the shape they've selected.

I scope a location object outside of this sub - so it can be referenced elsewhere - (I'm not wilfried OOP compliant yet ! all respect) but when I go to USE that location object I assign on SelectionChange ? on MouseUP (I set a boolean to know I'm in a shape selection process) ? Same coords as first shape.

so, I am having trouble getting the NEW lat lon of where the autoshape is MOVED to.

if that helps.

it's puzzling, I'd think pNewSelection would return the new coords - if I derive .Location off it .

considering it also has pOldSelection iirc.

there is ALWAYS a way I say - and with better problem definition on my part, I hope the MP guru's here might have some insights. If not, any unsolvable problem is usually a good one I figure.

thanks in advance for any insights, and thank YOU Mike for current insight, I see you all over these boards, and it just makes me feel great to see people make this board all it is.