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

Toolbar event?

This is a discussion on Toolbar event? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I have a Windows Application with Mappoint embedded in one panel, and virtual earth in another panel. I have ...

  1. #1
    joerg3011 is offline Junior Member White Belt
    Join Date
    Jul 2008
    Posts
    2

    Toolbar event?

    Hi,

    I have a Windows Application with Mappoint embedded in one panel, and virtual earth in another panel. I have implemented some code to control Mappoint and VE synchronous, for example when I zoom or pan in Mappoint, VE zooms and pans synchronous and the other way round.

    My problem is, I need to set a flag, which program has the control to avoid a infinite loop and therefore need a event for Mappoint that is fired 100%, when I´m working with it. AfterRedraw and AfterViewChange aren´t applicable for it, because they are even fired, when I change sth via VE. The best results I got with MouseMove, but have still the problem, that I can´t find any event that is fired when I click on zoom in/out at the toolbar.

    So I need a event that is fired, when the mouse moves over the toolbar or sth at the toolbar is clicked.

    Hope somebody can help me.

    Regards Jörg
    Last edited by joerg3011; 07-23-2008 at 03:08 AM.

  2. #2
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Arrow Re: Toolbar event?

    Unfortunately, there are no events fired by the toolbar object.
    You could however superclass the toolbar at runtime and intercept WM_COMMAND messages for it, then check if the message is BM_CLICK.

    Copious example of superclassing the MapPoint application is in my GPS API article, right here on good ole MapForums.com.
    An API to Control MapPoint 2006 GPS Features - Part I of II

    HTH
    -Paul

  3. #3
    joerg3011 is offline Junior Member White Belt
    Join Date
    Jul 2008
    Posts
    2

    Re: Toolbar event?

    Hi Paul,

    thanks for your answer, unfortunately I have to check this later, because there are some issues with higher priority I have to work at first.

    I will post then, if it works for me.

    Regards

    jörg

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Programmatically calling Toolbar buttons
    By Kevin_Williams in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 07-31-2007, 04:56 PM
  2. Enabling the Drawing toolbar using VB and MapPoint Control
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-19-2004, 02:03 PM
  3. Creating a new toolbar
    By alt-088 in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-14-2004, 06:38 AM
  4. Creating a new toolbar - adding functionality
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-17-2004, 10:03 AM
  5. Drawing an Oval Using The Toolbar - QueryCircle?
    By Steve Wenck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-16-2004, 12:49 PM

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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132