Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with context-sensitive help
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01664781
Message ID:
01664807
Views:
62
I found a thread on Foxite where someone was encountering a similar issue. They apparently fixed the issue by NOT setting ON KEY LABEL. They write the following....
Actually, I must NOT set ON KEY F1. Then the control's HelpContextID calls the correct topic.
Waiting to hear if this does the trick.


>>>I have a compiled help file built with West Wind's Help Builder. For various forms in my app, i have set the form's HelpContextID property to map back to a specific help topic in the CHM file.
>>>
>>>My Inno Setup file installs and registers the required foxpro help support files via....
>>>
>>>
>>>[Files]
>>>Source: System\foxhhelp9.exe; DestDir: {app}; Flags: restartreplace sharedfile uninsneveruninstall
>>>Source: System\foxhhelpps9.dll; DestDir: {app}; Flags: regserver
>>>;--------------------------
>>>[Run]
>>>Filename: {app}\foxhhelp9.exe; Parameters: /regserver
>>>
>>>
>>>In the application startup process i am turning on help via the following code:
>>>
>>>
>>>SET HELP ON
>>>ON KEY LABEL f1 HELP
>>>SET HELP TO myhelp.chm
>>>HELP
>>>
>>>
>>>The problem is that context sensitive help does not work. The help file displays, but there is no navigation to the specific help topic. So on a form with HelpContextID set to 73, pressing F1 displays the main page of the help file.
>>>
>>>I have added a button to a form, and in its CLICK method, i added the code below:
>>>
>>>
>>>SET HELP ON
>>>SET HELP TO myhelp.chm
>>>ON KEY LABEL f1 HELP
>>>HELP ID 73
>>>
>>>
>>>This code above DOES display / navigate to the HELP ID page in the help file. But pressing F1 does not. Again, i get the help file to display with F1, but not the specified topic.
>>>
>>>Additionally, context sensitive help DOES work on a windows 10 dev machine when running the app EXE inside and outside of VFP.
>>>
>>>What am i missing?
>>
>>Is this occurring when the program is installed on a network share? If that's the case it's probably a security measure in Windows. We've been using a kludge where our program will copy the CHM file to a local folder (e.g. local temporary folder), then set the help to the copy.
>
>Thanks for the reply. The helpfile is copied local to each workstation and SET HELP TO points to that chm file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform