MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Disallow to move manuell added push pins

This is a discussion on Disallow to move manuell added push pins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm writing a VB6 application using the MapPoint ActiveX control. I`m looking for a methode to disallow move manuell added ...


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 02-18-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Disallow to move manuell added push pins

I'm writing a VB6 application using the MapPoint ActiveX
control.

I`m looking for a methode to disallow move manuell added
push-pins. Did anyone now how I can do this ?

Somebody in other ducussion group wrote that I can also disable object selection. I did not find the property I can do this.

Can somebody talk me how I can diabele selection of the object ?
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 03-02-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
hi, there's an article titled "Making pushpins inmoveable" or something like this, you can use, the code in vb6 is:

Private Sub MappointControl1_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
Dim sp As MapPoint.Shape
Dim loc As MapPoint.Location
If Button = MapPoint.GeoMouseButtonConstants.geoLeftButton Then
If Not MappointControl1.ActiveMap.Selection Is Nothing Then
If TypeOf MappointControl1.ActiveMap.Selection Is Pushpin Then
Set loc = MappointControl1.ActiveMap.GetLocation(80, 0) 'get a location over at the arctic ocean
Set sp = MappointControl1.ActiveMap.Shapes.AddShape(GeoAuto ShapeType.geoShapeRectangle, loc, 1, 1)
sp.Select
sp.Delete
End If
End If
End If
End Sub


hope is usefull
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
added, disallow, manuell, move, pins, push


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
PUSH PINS a_cajun_2 MapPoint 2006/2009 Discussion 1 01-07-2005 08:05 PM
Where are my Push Pins! Help! flymoe MapPoint 2006/2009 Discussion 1 11-20-2004 04:24 AM
Push Pins Anonymous MapPoint 2006/2009 Discussion 2 04-14-2004 07:16 AM
Push Pins Anonymous MapPoint 2006/2009 Discussion 1 04-09-2004 01:35 PM
Push Pins Ravi1 MapPoint 2006/2009 Discussion 2 10-21-2003 07:03 PM


All times are GMT -5. The time now is 07:07 PM.


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