Further to my last request, I've done some experimenting and found that:

- if I select a stop for the first time, SelChangedHandler fires once
for the new selection.
- if I then select another, SelChangedHandler fires once for the old
selection & once for new selection.
- if I move a stop WinChangedHndler fires twice.

This is a case of ask questions first, shoot leter, then if my
experiments don't pan out, hopefully there will be a mailed soln.  

So it looks as if I HAVE got the tools I need, unless anyone knows a
better way.  Also, I'm confuses as to why WinChangedHndler fires twice,
for just ONE move of a stop.

Cheers

Terry

-----Original Message-----
From: Terry McDonnell 
Sent: 09 June 2005 16:01
To: Terry McDonnell
Subject: MI-L How to detect if a map object has moved

Hello again List
 
Sorry to trouble you again but I'm working on this problem of moving bus
stops.  I know how to set the new centroid X & Y coords.  Trouble is,
the user may move several stops at a time, then save the changes.  To
avoid updating EVERY row in the Stops table, just in case some have
moved position, I'd like to detect one being moved, so I can change its
centroid on-the-fly.  Then when the user saves, all I need to do is
Commit.
 
Of all the handlers in MB, SelChangedHandler() seems to be the closest
to what I want but, as far as I can see, it only detects:
 
-  if one row was added to the selection;
-  if one row was removed from the selection;
-  if multiple rows were added to the selection;
-  if multiple rows were de-selected.
 
or
 
- the number of the row which was selected or de-selected (only applies
if a single row was selected or de-selected). 
 
Am I interpreting this too literally or is there no way to detect an
object being moved?  I can't believe there's no way.  Any ideas?
 
'ppreciate it
 
Terry McDonnell


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16762

Reply via email to