MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Several issues on programming in VC6 with MapPoint 2006

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-18-2008
Junior Member
White Belt
 
Join Date: Nov 2008
Posts: 7
Several issues on programming in VC6 with MapPoint 2006

Hello Everyone!

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!
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 11-25-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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.
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
issues, mappoint 2006, programming, vc6


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/several-issues-programming-vc6-mappoint-2006-a-9121.html

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

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
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


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...



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 55 56 57 58 59