Hi Mattias,
Thanks for the demo - it works perfectly. Unfortunately, I can't seem
to get it working for my packages. Sorry for being so difficult!
;-)
This is the directory layout and different package names:
Packages:
----------------
tiOPF <== Core package (runtime only)
tiOPFGUI <== GUI related units (runtime only)
tiOPFDsgn <== This registers components of tiOPFGUI into IDE
(design time)
tiOPFHelpIntegration <== fpdoc help registered into IDE (design time)
Directory layout:
------------------------
tiOPF2
/Source
/Compilers
/Delphi7
/Delphi2006
/FPC <= packages methioned above live here
/html <= symbolic link to /Docs/html
/Core
/GUI
/Options
/Docs
/html
/xml
So out of the four packages mentioned, only tiOPFDsgn and
tiOPFHelpIntegration needs to be "Installed" into the IDE.
tiOPFHelpIntegration package has a single file called
pkghelpintegration.pas, shown below.. I tried to register using local
help, or online help, but none seem to work. The tiOPFHelpIntegration
Required Packages are IDEIntf and FCL.
---------------- pkghelpintegration.pas --------------
unit PkgHelpIntegration;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, HelpFPDoc;
procedure Register;
implementation
procedure Register;
begin
// for Online help files
// RegisterFPDocHTMLHelpForPackage('tiOPF2 Help','tiOPF2 Help Database',
// 'http://opensoft.homeip.net/tiopf/','tiOPF');
// for local help files
RegisterFPDocHTMLHelpForPackage('tiOPF2 Help','tiOPF2 Help Database',
'file://$PkgDir(tiOPF)/html','tiOPF','../../Core;../../Options;../../GUI');
// also tried
{
RegisterFPDocHTMLHelpForPackage('tiOPF2 Help','tiOPF2 Help Database',
'file://$PkgDir(tiOPF)/html','tiOPF');
}
end;
end.
------------------- END -----------------------
fpdoc's xml help files for tiOPF is generated as follows..
fpdoc --format=html --package=tiOPF2Core --output=html/ \
--input='-Fi../Source/Core ../Source/Core/tiConstants.pas'
<.. all other units...>
Now I guess my RegisterFPDocHTMLHelpForPackage() method is not using
the correct package name or something. What package name am I
supposed to use? tiOPF, tiOPFHelpIntegration, tiOPF2Core (as used in
the xml docs), etc..
I could change the package name in the xml docs, it that will help.
Regards,
- Graeme -
On 20/09/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
See examples/helpforpackage/demopackagewithhelp.lpk
Mattias
--
There's no place like 127.0.0.1
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives