Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to detect a click on certain part of graphic for help

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
I am creating a helpfile for my vfp-app.
I remember from years ago I saw a program which had possibility to devide a grapic in many areas. A click on that graphic resulted in receiving the ID which belonged to that area of the graphic.
I don't remember which program that was an...
would it be possible to use that in the nowadays CHM helpfiles.
-Bart
 
You can make any area of a graphic in a VFP app clickable by overlaying a transparent shape, of course.

But it almost sounds like you're talking about an HTML Imagemap. Those SHOULD (note I did not way will) work in an HTML help file.

There are tons of tools on the web for creating an imagemap. Google should turn them up.
 
Bart,

You asked in another thread for recommendations for a CHM authoring tool. Have you chosen one yet?

The reason I ask is that the feature you are looking for is a function of the authoring tool. As Dan says, HTML has a control called an Imagemap which does what you want, but it is up to the authoring tool whether it supports that.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hi Dan and Mike,
Thanks for response.
I will take this with my thoughts which app to select for creating help-files.
From investigations on the web it's not always clear if the app gives the functionality I look for. So experiences of others is quite worthfull.
-Bart
 
Mike,
My idea is to have a screendump in the helpfile and give that hotspots which has to be connected to hyperlinks elsewhere in the helpfile.
-Bart
 
Nifrabar

You can create individual hotspots by using the .MouseDown() event
Code:
[COLOR=blue]IF BETWEEN(nXCoord,24,50) AND BETWEEN(nYCoord,24,50)
[tab]* Code
ENDI

IF BETWEEN(nXCoord,51,75) AND BETWEEN(nYCoord,24,50)
[tab]* Code
ENDI
[/color]

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander.com
PDFcommander.co.uk
 
Mike

You may well be right in which case then it's not a VFP question at all but should be posed in forum764
Nifrabar said:
A click on that graphic resulted in receiving the ID which belonged to that area of the graphic.
I read that to be that the hotspot on the VFP form would create the HelpContextID in turn linking to the relevant page in the .chm.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander.com
PDFcommander.co.uk
 
Chris,
Mike was right. Initially I looked for this to create the helpfile.
But meanwhile I also see need to have same functionality on a form.
In fact I am working on a administration program to manage a cemetry. Thee is a kind of planview showing all locations.
Whith your solution I may be able to point to a location and couple my table with data to it.
So, a 'double 'solution for both help and vfp-form!.
Anyway thanks to both of you!
For now I think we may close this topic.

-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top