Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Several issues on programming in VC6 with MapPoint 2006 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello Everyone! I'd like to begin the adventure on the programming with mappoint 2006 Europe. I have met several problems ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Several issues on programming in VC6 with MapPoint 2006 I'd like to begin the adventure on the programming with mappoint 2006 Europe. I have met several problems in my demo project and hope to get some directions to solve them. 1) Is there a way to "prohibit" the user to modify the pushpins and lines generated by the software? We need the "zoom" function by the left key, but not able to disable the actions like "move", "drag", etc 2) Without "return TRUE" in the BeforeClick event handler, the pushpins and lines can be selected by mouse left/right click. While as we need our own menu, we let BeforeClick event handler "return TRUE". Now the menu does not popup. But in this way, how to select the pushpins, and lines ? Thank you very much! |
| |||
| Re: Several issues on programming in VC6 with MapPoint 2006
Hi, to prohibit a user changing things you can do several things. In selectionChanged you can check what a user has selected and deselect it by selecting something else. eg create a pushpin somewhere in the ocean, select it and delete it. you can also place a transparant panel on top of the control. then the panel receive all mouse and keyboard events and you have full control. for your other question, I'm not sure I understeand completely. you can have in onBeforeClick your own popup menu. best is to do it outside the event handler. for example by posting a message to a custom message handler where you popup your menu. if you set cancel = true then mappoint will not popup his own menu.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| issues, mappoint 2006, programming, vc6 |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 11-20-2008 01:05 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint 2009 issues | Christopher@Georger.Com | MapPoint 2006/2009 Discussion | 0 | 09-15-2008 01:32 PM |
| Programming MapPoint 2006 | tgardner | MapPoint 2006/2009 Discussion | 1 | 12-22-2007 05:35 PM |
| Geocode/Mapping Issues - Mappoint 2006 Europe | sjhunt | MapPoint 2006/2009 Discussion | 24 | 10-24-2007 04:05 PM |
| MapPoint/S&T Install Issues | dstone | MapPoint 2006/2009 Discussion | 3 | 07-23-2007 12:31 PM |
| Programming with MapPoint 2006 | RAPZ | MapPoint 2006/2009 Discussion | 3 | 11-09-2006 09:34 AM |
Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...