MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to use AfterRedraw()??

This is a discussion on How to use AfterRedraw()?? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello best programmers, There is an event called AfterRedraw(), but it is so poorly documented. I just understand that this ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-02-2007
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
How to use AfterRedraw()??

Hello best programmers,

There is an event called AfterRedraw(), but it is so poorly documented. I just understand that this event occurs after finishing repainting the map. Well, when does it repaint exactly, cuz I don't know how and when MP paints.

Thereby I've read that someone was able to put his own logo instead of Microsofst's logo in the upper right corner, using the AfterRedraw() method. And that's why I'm so interested how to use AfterRedraw.

Another problem is that I wanted to use MP2006 as a serverapp on the server, when I've done that, MP displays the map as a .gif with 4 lines of comments about microsoft mappoint products. Ofcourse depending on the size of the mappicture. But I can't show the map this way to the users, that's to ugly. So again, I may solve this by using AfterRedraw method.

Hope someone knows more about the AfterRedraw, thnx anyway.
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 01-02-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: How to use AfterRedraw()??

Hi,

Yes AfterRedraw is like the name say, it is fired after every redraw. This is after a map load, zoom, pan, etc.

About the logo. You can hide it by putting a panel on it and you can put on the panel a bitmap with your own logo. However you must carefully read the end user agreement because it say something of the logo. Depending the use of the map it may not be removed.

If you bother about the poping up of MapPoint help when someone click on the logo then just put a transparant panel on it, so the panel will intercept the mouse click and you are rid of that.

About the created GIF image, please also read carefull the end user agreement for it. You can get rid of the lines if you copy the map in your code to clipboard. Then you can copy it back into your own bitmap and save it to a file. The Html page you can generate yourself easy if needed.
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 01-02-2007
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
Re: How to use AfterRedraw()??

Ok, I understand the license agreement limits us in deleting the logo.

But for example to get a map without a logo, I could save the map in a file when an AfterRedraw event occurs, right?

Thnx for your answer Wilfried.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-02-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: How to use AfterRedraw()??

Hi,

Yes, after redraw you copy the map to clipboard. Then copy it in your own bitmap object and save it to file in the format (gif or whatever) you like. Then you create yourself the html file and you are done
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/how-use-afterredraw-5538.html

Posted By For Type Date
Programming MapPoint via .NET - MapPoint Articles - MP2K Magazine This thread Refback 01-08-2007 11:07 AM
Finding Sites Within a Specified Distance From an Address - MapPoint Articles - MP2K Magazine This thread Refback 01-04-2007 05:50 AM
Top 100 vBulletin Forums: MapPoint Forums This thread Refback 01-02-2007 12:54 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


All times are GMT -5. The time now is 01:08 AM.


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

Short Break Ski Holidays
Just want to book a short break? Short break ski holidays become great value when you book at Holiday Hypermarket. See the range of deals on offer.

City Break Holidays
Book city break holidays through Travel Counsellors. A personal travel advisor will help with your city break holiday plans.

Flight
When looking to jet set off, make sure you check out dealchecker.co.uk before you check in anywhere else. Bag a bargain flight from all major scheduled and charter airlines.

Cuba Holidays
Cuba holidays offer an exciting cultural and wonderful culinary experience. Book with The Holiday Place for a great deal.

Greece
Greece covers a large area and as a result there is an abundance of things to do, see and taste. You can relax on a beach, visit ancient sites or make a trip to one of the islands like Corfu, Crete or Rhodes.

Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk

Holidays to Lanzarote
Not been to the Canary Islands yet? What are you waiting for! Get information on holidays to Lanzarote 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