Community of VE/MapPoint Users and Developers
This is a discussion on How to restrict user from changing pushpin information... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi All, I'm working with a desktop C# MapPoint2004 application on Europe map using ActiveX control. I'm showing pushpins on ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to restrict user from changing pushpin information... I'm working with a desktop C# MapPoint2004 application on Europe map using ActiveX control. I'm showing pushpins on certain locations on map. Now I've to implement two restrictions on user interaction. 1. User must not be able to change the info shown in balloon of pushpin on selection. 2. User should not be able to change the position of pushpin on map. Any help is highly appreciated. Regards
__________________ Learn from cradle to the grave |
| |||
|
Hi, Just restrict the user to select. Then ou are done
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi Wilfried, I've restrict user from selecting the pushpin and it solved "moving the pushpin problem" but still user can edit the text in balloon that I wish to restrict. Is there any solution to this text edit restriction problem? Regards
__________________ Learn from cradle to the grave |
| |||
|
Hi, I just try and I cannot edit the text balloon. Hmm this is my code. The original is from Fernando Velasquez and you will find it somewhere on this forum. Code: private void unSelectPushPin(object mapSelection)
{
try {
Pushpin pp = mapSelection as Pushpin;
if (pp != null) {
Location loc = mp.ActiveMap.GetLocation(80, 0, 0); // somewhere at the arctic ocean
Shape sp = mp.ActiveMap.Shapes.AddShape(GeoAutoShapeType.geoShapeRectangle, loc, 1, 1);
sp.Select();
sp.Delete();
}
Code: private bool lastMouseButtonLeft = false; Code: if(e.button == GeoMouseButtonConstants.geoLeftButton) {
unSelectPushPin(mp.ActiveMap.Selection);
lastMouseButtonLeft = true;
}
Code: if (lastMouseButtonLeft) {
unSelectPushPin(e.pNewSelection);
lastMouseButtonLeft = false;
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| changing, information, pushpin, restrict, user |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get Lat/Long of a PushPin moved by a user | Gerhard Faber | MapPoint 2006/2009 Discussion | 1 | 03-14-2006 03:48 PM |
| How to restrict map area in ActiveX? | ErikS | MapPoint 2006/2009 Discussion | 1 | 07-26-2004 01:34 PM |
| Exporting pushpin information from territories | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-28-2004 09:26 AM |
| Changing highlight color of a pushpin in VB.net | Anonymous | MapPoint 2006/2009 Discussion | 0 | 02-29-2004 03:37 PM |
| I have an app that adds a pushpin (a user selected.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-19-2002 04:22 PM |