How to produce Pan (Grab & Drag) Tool

DanaBDanaB Global Mapper UserPosts: 13
edited March 2012 in SDK
Hi Mike

Can you give me any pointers on how to produce the Pan Tool (Grab and Drag) similar to GM App.
The MouseMove portion and refreshing the bitmap is the problem.

Thanks

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited March 2012
    You would need to keep the rendered map as a background bitmap, then on mouse move with the mouse button down (or however your interface works), just BitBlt that background map to a different location offset by your mouse drag distance. When the user releases the mouse then do a full redraw with the new bounds after panning.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
Sign In or Register to comment.