Community of VE/MapPoint Users and Developers
This is a discussion on which dataset belong a pushpin ? within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hi, I want to avoid the user can change the name of the pushpins. I can do it in this ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| which dataset belong a pushpin ? I want to avoid the user can change the name of the pushpins. I can do it in this way, in the Mappointcontrol_selectionchange event: IfTypeOf (e.pOldSelection) Is MapPoint.Pushpin Then e.pOldSelection.name = Old_PushpinName EndIf IfTypeOf (e.pNewSelection) Is MapPoint.Pushpin Then Old_PushpinName = e.pNewSelection.name EndIf It works, but I want to restrict this only to some pushpins that belong to a specific dataset. So, how see which dataset belong a pushpin ? Thanks Marco |
| |||
| Re: which dataset belong a pushpin ?
Sorry but I didn't understand ... I explain better my problem: From my VB.NET application, I create some pushpins with different names (1532, 6543, 9980, etc) and then I move these pushpins to "mydataset1" . Then I create other pushpins with other names and move them to "mydataset2" and so on. The user also can create pushpins directly on the map and they belong to the default mappoint dataset. Ater all, when the user click on one pushpin on the map, how my application can understand wich dataset belong the pushpin ? Mydataset1, mydataset2, etc ? Marco |
| ||||
| Re: which dataset belong a pushpin ?
hi, Quote:
use FindPushPin() to see if you find it in that Dataset, else use next Dataset and do it again. If the Map was saved an you use OpenMap, you have to spezify your Dataset |
| |||
| Re: which dataset belong a pushpin ?
It doesn't work, because the user can also create a pushpin on the map with the graphic tools and he can give it the same name. I mean this: 1) the map is empty. 2) my .net application create a pushpin "John" and move it to mydataset1 3) the user create another puspin "John" and it belongs to the default mappoint dataset 4) non we have two puspin "John" on the map 5) the user select with the mouse one of these two pushpin and try to change its name 6) I want that if the pushpin is mine (mydataset1) name change is not allowed, otherwise yes. It would be so easy if every pushpin has a property that specify wich dataset belongs to .... Marco |
![]() |
| Tags |
| belong, dataset, pushpin |
| ||||
| Posted By | For | Type | Date | |
| MapPoint Help - MP2K Magazine | This thread | Refback | 10-17-2008 03:01 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Highlight all pushpin in dataset? | Kevin_Williams | MapPoint 2006/2009 Discussion | 1 | 12-21-2006 06:47 AM |
| PushPin dataset is saved in .ptm? | PeppeM | MapPoint 2006/2009 Discussion | 1 | 05-06-2006 01:53 PM |
| delphi iterate pushpin dataset | merlino | MapPoint 2006/2009 Discussion | 1 | 10-12-2004 10:20 AM |
| Find Nearby Pushpin in dataset | Dazzer | Products: Pushpin Tool, Single State Mapper | 1 | 10-16-2003 04:05 PM |
| Problems with Pushpin dataset | Sylvain | MapPoint 2006/2009 Discussion | 13 | 11-28-2002 08:08 AM |