Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetViewPort, ScrollBars and image zoom in/out
Message
From
06/01/2009 10:54:05
 
 
To
05/01/2009 21:18:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01371274
Message ID:
01371391
Views:
12
Claudio,

I do a lot of work with GIS systems used in conjunction with VFP. I mocked up a VERY crude example of how I would do what you are trying to do. You will have to email me at "Steve.Stamm at dpra.com" and I'll send you the zip.

I didn’t connect the map to any scroll bars because in my experience they take up too much room and people generally like panning with the mouse rather than clicking on a scroll bar. Using a raster map this way has very limited usefulness in my opinion. Because of the distortion in flat projections such as the one I used you will not be able to reliably place anything on the map without a great deal of difficulty. But, if all you want to do is have a pretty map of the world that users can pan and zoom then this might work for you. I would go out and look for the largest map I could find though.

In my prototype, use the mouse wheel to zoom in and out and then click and drag the map to pan it around. The mechanism for doing this is simple so you should be able to modify it to fit your needs.

If I were doing a map I think I’d use something like the free ActiveX control MapWin. Check it out at: http://www.mapwindow.org/

You’ll love it!

Let me know if I can help you out in any way.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform