MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Toolbar event?

This is a discussion on Toolbar event? within the MapPoint 2006/2009 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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-23-2008
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.
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 07-23-2008
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-24-2008
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
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


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
Programmatically calling Toolbar buttons Kevin_Williams MapPoint 2006/2009 Discussion 12 07-31-2007 04:56 PM
Enabling the Drawing toolbar using VB and MapPoint Control spideybud MapPoint 2006/2009 Discussion 4 11-19-2004 02:03 PM
Creating a new toolbar alt-088 MapPoint 2006/2009 Discussion 4 11-14-2004 06:38 AM
Creating a new toolbar - adding functionality Anonymous MapPoint 2006/2009 Discussion 1 08-17-2004 10:03 AM
Drawing an Oval Using The Toolbar - QueryCircle? Steve Wenck MapPoint 2006/2009 Discussion 1 08-16-2004 12:49 PM


All times are GMT -5. The time now is 10:40 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Ski Holiday Packages
Choose from a selection of ski holiday packages from the top travel brands. Holiday Hypermarket makes it easy to search and browse great value ski holidays.

Greece Weather
Check out Greece Weather - Travel Counsellors details information on Greece including, weather, flights and accommodation.

Flight to Canada
Book a flight to Canada to explore one of the most exciting travel destinations in the world. There are loads of interesting cities but some even more impressive natural beauty.

Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk

Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.


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