Hi!
Well, certainly it is not hard to organize if you meant "usual" WEB approach.
How it is implemented in WEB interface:
- Place an image on your form with a map
- define MAPs - a set of poligon areas clicking in which causes diferent links or events use.
In VFP you can do it following way:
- define arrays that define poligons for areas
- put an image on form and in the MouseDown or NouseUp event catch coordinates of the mouse
- write a function to determine if mouse is in certain area using poligon arrays
- if you want to outline the area (like browser usually does), prepare an image with outline and transparent background for each area and show it exactly over the place of area in the big map image.
Well, if you convenient what is late binding to events of some ActiveX object (using EventHandler function), you can go simpler route:
- Put a web browser control on your form
- navigate to TML page with map image and MAP areas defined
- bind VFP code to HTML page event that will get a result of clicing on area
So, you will display HTML page as on WEB sites :-)
HTH.
>Hello:
>I'm working with VFP6.
>My customer ask for an application with a map in the screen and access to it with the mouse like you can see ay web pages.
>Is that possible with VFP6? if it is, where can I get information to make the application?
>TIA, Javier
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.