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

How to use AfterRedraw()??

This is a discussion on How to use AfterRedraw()?? within the MapPoint Desktop 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 ...

  1. #1
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    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.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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.

  3. #3
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    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.

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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

Thread Information

Users Browsing this Thread

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

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