HelpSystem doesn't work in Delphi XE2 with a f

2019-09-16 10:29发布

Create any application in Delphi XE2 and press F1 to run help system. You'll see the help article or the following window (for search string 'function'):

enter image description here

I have an application for Delphi XE2. When I open it and press F1 help system opens only the following window (for search string 'function'):

enter image description here

If you'll open the first project again (after the second) help system opens the same window as on the second project (incorrect).

I have tried to delete the following files: .dproj, .dof, .identcache, .otares - but with no success. How to fix this issue?

More info:

Context help doesn't work on IDE while you're using BPL with HtmlHelpViewer unit on uses clause. BPL is design-time and run-time both. Should I create 2 separate BPLs - the first for design-time with conditional directives and the second for using on the application? Is this a Delphi XE2 issue and should it be fixed by Embarcadero?

2条回答
欢心
2楼-- · 2019-09-16 10:55

This Delphi XE2 issue is caused when any design-time BPL using HtmlHelpViewer unit. There are 2 solvations:

  1. Create 2 separate BPLs for design-time and for run-time.
  2. Replace HtmlHelpViewer unit by your own and call HtmlHelp API directly.

P.S. Thanks to David Heffernan for the second method. Embarcadero doesn't want to fix the issue on the IDE or the unit.

查看更多
forever°为你锁心
3楼-- · 2019-09-16 11:02

Perhaps some of the answers to a related help issue that I asked about help earlier this year would be helpful in solving your problem: How to fix broken context sensitive help in IDE of Delphi 2010

查看更多
登录 后发表回答