View Single Post

  #9 (permalink)  
Old 05-25-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

I have another idea. In BeforeClick if you set e.cancel = true then there is no selection eather. but you know there the x and y coordinates of the mouse. So there you can do something like:

Code:
            FindResults results = MP.ActiveMap.ObjectsFromPoint(e.x, e.y);
            foreach (object o in results) {
                Pushpin pp = o as Pushpin;
                if (pp != null)
                    pp.Select();
            }
This handles of course only pushpins. I dont know if there is a method in mappoint to select() any objec if it is selectable. But if this works I think you are in a better direction, right ?
Reply With Quote