[Lazarus] Help on FCL?
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Jan 22 10:51:49 CET 2012
On Sat, 21 Jan 2012 21:08:18 -0500
Andrew Haines <AndrewD207 at aol.com> wrote:
> On 01/21/12 20:15, Mattias Gaertner wrote:
> > On Sat, 21 Jan 2012 19:36:44 -0500
> > Andrew Haines <AndrewD207 at aol.com> wrote:
>
> >> At one point I tried to see if installing packages could make available
> >> context help files (F1) but was not able to fully understand how to add
> >> help databases. (Installing package "x.lpk" makes x.chm available.)
> >
> > What do you need?
> >
>
> Honestly at this point I don't remember.
>
> >> And there are different types of help formats (local html files/ http / chm.
> >> i.e. there was/is? no straightforward (that I found) way to add that.
> >
> > Can you give an example?
> >
>
> It's been probably a year since I looked at this. But I guess my problem
> was how do we add a flexible "helpfile" setting to x.lpk?
>
> I need to look at the helpsystem again to be able to answer this properly.
>
> Does laz_xmlconf remember settings that are unknown to the current
> lazarus? I want to know if setting for instance
> 'help/chm/api/filename/value'
> 'help/chm/ref/filename/value'
> 'help/chm/xxx/filename/value'
> in a lpk would be erased by being modified with a version of lazarus
> that was unaware of help/chm help.
Yes, the IDE cleans up lpk files.
Each package and project has custom options - simple name, value pairs.
> I think my main problem was that I couldn't find where the codetools
> figured out that the identifier it was looking up was not in the
> lcl/fcl/rtl and had no help available for it.
The codetools don't know about packages. The IDE knows.
> That is the point where I
> needed to get it to see if the current project or the package the unit
> belonged to has help associated with it.
The IDEIntf has a function to get the owner(s) of a unit. See here:
http://wiki.lazarus.freepascal.org/Extending_the_IDE#Find_the_package.28s.29_of_a_unit
> I am still interested in implementing this but in the past I was unable
> to follow the logic of connecting an identifier with it's help.
Mattias
More information about the Lazarus
mailing list