Community of VE/MapPoint Users and Developers
This is a discussion on MappointControl and Pushpin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am building a standalone (not addin) VB6 App based around the MappointControl. Does anyone know if it is possible ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MappointControl and Pushpin I expect it is somehow possible using one of the events avaliable to the MapPoint control such as : AfterRedraw AfterViewChange BeforeClick BeforeDblClick DataMapChange MouseDown MouseMove MouseUp NewDataSet ReadyStateChange RouteAfterCalculate RouteAfterOptimize SelectionChange however I have not been able to dynamicaly obtain a address upon catch of lets say a MouseDown event, geocode it and convert it progmaticly to add the pushpoint. Thanks in advance!!! |
| |||
|
I tried out this code, it adds a pushpin to the map (objMap) when you click the left and right mouse buttons together (all you have to do is change the Button value to switch) Code: Private Sub objMap_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean)
If Button = 3 Then
Dim pinLoc As Mappoint.Location
Set pinLoc = objMap.XYToLocation(X, Y)
objMap.AddPushpin pinLoc, "great"
pinLoc.goto
End If
End Sub
|
| |||
|
This works great except when I click on a geocodable location, at that point Mappoint default behavior pops up a listbox with addresses in it. I'd like to retrieve the address chosen from the list box and then place the pushpin. This would solve the problem. Any sugestions? To reproduce what I am talking about just zoom in close enough so you can percisly click on a road. Thanks! |
![]() |
| Tags |
| mappointcontrol, pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappointcontrol on IPAQ PDA | Anonymous | MapPoint 2006/2009 Discussion | 3 | 01-28-2006 10:50 AM |
| MapPointControl Windowless / VB6 | Guido Mitschke | MapPoint 2006/2009 Discussion | 3 | 12-29-2005 01:13 PM |
| [C#] MappointControl - Pushpin symbol | suamikim | MapPoint 2006/2009 Discussion | 4 | 11-23-2005 02:02 AM |
| MapPointControl.ocx | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-25-2005 09:46 AM |
| download mappointcontrol | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-10-2004 05:14 AM |