Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to use AfterRedraw()?? 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. |
| |||
| 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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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. |
| |||
| 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
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| ||||
| 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 | |
| |
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.