Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Mouse Click Location on a Map
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00887586
Message ID:
00887670
Vues:
9
>I'd like to place an image control on a form showing
>a map of the United States.
>
>How can I determine which state a user clicked on?
>
>Many Thanks

I guess you could also try to use the Browser control with the image map instead, like it described for example here: http://www.cris.com/~automata/maps.htm
Did not try it myself though.

Since the VFP image control is rectangular, it has no idea whether you click on some definite state inside the image, without having some mouse coordinate translation table for the mouse positions and their meaning within the actual map.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform