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

That's how we did it. After fooling around with making multiple buttons to fit them inside the states, and a 3rd party button ocx (ButtonMaker by FarPoint Technologies. They don't have invisible buttons though) we just used labels and their click methods. It was the easiest. We set the alignment to Center and made the labels as big as possible within the state boundary just to give more area for mouse-challenged people to hit.
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform