MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




SelectionChange Event

This is a discussion on SelectionChange Event within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; With the SelectionChange Event: object.SelectionChange(NewSelection, OldSelection) NewSelection ByVal Object. The newly selected Direction, Location, Pushpin, Shape, or Waypoint object on ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2006
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
SelectionChange Event

With the SelectionChange Event:

object.SelectionChange(NewSelection, OldSelection)

NewSelection ByVal Object. The newly selected Direction, Location, Pushpin, Shape, or Waypoint object on the map.

Does anyone know of a easy yet fool proof way to determine which one of Direction, Location, Pushpin, Shape, or Waypoint object the NewSelection object is?

Most of these have a Type property but the type values are not unique between Objects.

Ciao,
__________________
Calv1ns
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-12-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Code:
if (NewSelection is Location)
    // it is a Location object
or

Code:
Location loc = NewSelection as Location;
if (loc != null)
    // it is a Location object
In VB something similar.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
event, selectionchange


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
SelectionChange event Yazzy MapPoint 2006/2009 Discussion 0 05-16-2006 10:25 AM
Where is the Quit event? Anonymous MapPoint 2006/2009 Discussion 3 04-08-2005 08:36 AM
VC++ OnSelectionChange event MP2KUser2 MapPoint 2006/2009 Discussion 0 10-13-2004 02:24 PM
How to add click event for VB.Net ? Anonymous MapPoint 2006/2009 Discussion 2 12-31-2003 01:15 AM
mouse down event henemonster MapPoint 2006/2009 Discussion 1 03-31-2003 03:04 PM


All times are GMT -5. The time now is 01:06 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55