HelpSystem doesn't work in Delphi XE2 with a few projects

不想你离开。 提交于 2019-12-25 03:49:34

问题


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'):

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'):

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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/11084236/helpsystem-doesnt-work-in-delphi-xe2-with-a-few-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!