Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

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

  1. #1
    gabriele is offline 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!

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MapPoint 2009 issues
    By Christopher@Georger.Com in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-15-2008, 02:32 PM
  2. Programming MapPoint 2006
    By tgardner in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-22-2007, 06:35 PM
  3. Geocode/Mapping Issues - Mappoint 2006 Europe
    By sjhunt in forum MapPoint Desktop Discussion
    Replies: 24
    Last Post: 10-24-2007, 05:05 PM
  4. MapPoint/S&T Install Issues
    By dstone in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 07-23-2007, 01:31 PM
  5. Programming with MapPoint 2006
    By RAPZ in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-09-2006, 10:34 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67