Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click on a map
Message
From
25/08/1997 12:04:52
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
 
To
25/08/1997 11:56:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00046665
Message ID:
00046717
Views:
31
>>>>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform