Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click on a map
Message
De
25/08/1997 12:04:52
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
25/08/1997 11:56:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00046665
Message ID:
00046717
Vues:
26
>>>>The user wants a map of the USA on a form. She would like to click on states and get data for those states. It amounts to making buttons that are state-shaped. I only know how to make rectangular buttons, which is fine for Colorado and Wyoming, but not many others. Can it be done?
>>>
>>>what about a map of the US. based on mouse location when click, show data for state mouse is on. we have something like that here, but not readily available (don't remember where it is)
>>
>>That sounds simple enough. Ideally, there would be a way to define the states as objects somehow, so that I could explicitely program Texas.click or Utah.mouseover. If I have to relate x and y position of the mouse to the complicated shapes of states based on a huge set of numbers, it sounds inefficient.
>
>Did you check third-party vendors, e.g. www.mapx.com or www.esri.com. They deliver Active-X components which are probably exactly what you are looking for.

Also, instead of clicking on the state, which may be difficult on low-res monitors for states in the NE, you can also try capturing a click on the states' labels instead. No Active-X needed for that.

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform