Community of VE/MapPoint Users and Developers
This is a discussion on How to use MouseEvents with Delphi in an TOleContainer ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using MP2002 with Delphi and the TOleContainer as it is described by Jack Melger ( http://www.mp2kmag.com/articles.asp?...delphi.example ). The ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to use MouseEvents with Delphi in an TOleContainer ? (http://www.mp2kmag.com/articles.asp?...delphi.example). The code is: procedure TForm1.FormActivate(Sender: TObject); var vGuid : TGuid; begin OleContainer.CreateObject('MapPoint.Map.EU.9', False); OleContainer.DoVerb(1); OleContainer.OleObjectInterface.GetUserClassID(vGu id); FMap := IDispatch(OleContainer.OleObject) as _Map; end Now I want to use the the MouseDown-Event to get a coordinate for my application. How do I do that ? When I use MP2002 as a separate application and put TMap on the form this is easy. But with TOleContainer ? Regards Rainer Barthels |
| |||
| MapPoint events in Delphi
Hello Rainer, Apart from the FMap in the OleContainer you should add a TMap component to your form. Then you have to use the ConnectTo command from Delphi to connect the FMap to the TMap component. Now you can use all events of the TMap component in your application. Good luck, Jack. |
![]() |
| Tags |
| delphi, mouseevents, tolecontainer |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web service with delphi | Anonymous | MapPoint Web Service and Virtual Earth | 1 | 11-10-2004 09:43 AM |
| DriveTimeZone Delphi | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-20-2004 05:56 AM |
| Delphi | Anonymous | MapPoint 2006/2009 Discussion | 2 | 12-18-2003 12:11 PM |
| pushpins with delphi | ian | MapPoint 2006/2009 Discussion | 2 | 06-19-2003 01:15 PM |
| 'AddCommand' + Delphi | stuarth | MapPoint 2006/2009 Discussion | 0 | 04-09-2003 10:18 AM |