Recent

Author Topic: How did the buildin help get the correct topic  (Read 1697 times)

af0815

  • Hero Member
  • *****
  • Posts: 1409
How did the buildin help get the correct topic
« on: January 09, 2015, 03:12:38 pm »
I am searching about the information how the helpsystem inside of the lazarus ide (editor) works. I find the parts, how the ide communicates with the lhelp system, but nothing about the generation of the correckt topic.

Example:
if i go inside a sourcecode, and put my cursor on the word class and press F1
the ref.chm is open in chapter 6 classes and i see in the last lines of lhelp 'ms-its:ref.chm/ref/refch6.html'.

Question:
Which part of the ide is for generation the topic (keyword). In which sourcecode, can i start to understand this ?
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12719
  • FPC developer.
Re: How did the buildin help get the correct topic
« Reply #1 on: January 09, 2015, 03:47:06 pm »
I guess it is function TIDEHelpManager.ShowHelpForSourcePosition(const Filename: string; in ide/idehelpmanager

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: How did the buildin help get the correct topic
« Reply #2 on: January 10, 2015, 02:15:15 pm »
Yes, thanks. This was the missing link :-)

Also a good entrypoint for the understanding is
function TIDEHelpManager.ConvertCodePosToPascalHelpContext(

the ide/idehelpmanager.pas is the best place if you want to dive in the help system of lazarus.


regards
Andreas

 

TinyPortal © 2005-2018