MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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

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

Tags
event, toolbar


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/toolbar-event-8102.html

Posted By For Type Date
Toolbar event? - MapPoint Forums This thread Refback 09-17-2008 04:22 PM

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 02:09 AM.


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

PUBS
You can visit all the pubs looking for the one you would enjoy. Or browse the reviews on Qype.



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