On Sun, 21 May 2006 10:17:39 +0200
Vincent Snijders <[EMAIL PROTECTED]> wrote:
> Borut Maricic wrote:
> > I am still a bloody newbie in Lazarus, but am trying to go
> > forward step by step. I am using it on WinXP. My HTML
> > browser is Opera.
> >
> > While experimenting with the example HTMLHelp1, I was
> > receiving a message "Unable to find a HTML browser". This
> > forced me to install gdb :) (had to do it sooner or later)
> > and search for the devil in the details.
> >
> > If HTMLBrowserHelpViewer.BrowserPath is not defined and
> > OnFindDefaultBrowser not Assigned then
> > LazHelpHTML.THTMLBrowserHelpViewer.FindDefaultBrowser
> > searches the PATH environment variable, in order to find the
> > browser path. As far as I am aware, this is meaningless for
> > the Win platform.
> >
> > In my Delphi (Win) projects, when I want to show some
> > document (be it html, doc, txt, ...) I usually just start
> > the external process specifying the document name (does not
> > have the exact code for that API call at hand at the moment)
> > and Win itself then starts the appropriate application
> > (according to the document extension, opening the specified
> > document).
> >
> > I feel that (for win) this would probably be the best and
> > most stable way, but am not sure if, where and how such a
> > patch is to be made in a multiplatform Lazarus code.
> >
>
> I guess some specific win32 code has been lost, when the help was moved
> from the ide to the lcl. In the IDE GetDefaultBrowser from
> lazarus\ide\include\win32\lazconf.inc.
>
> procedure GetDefaultBrowser(var Browser, Params: string);
> begin
> Browser:= SearchFileInPath('rundll32.exe','',
> SysUtils.GetEnvironmentVariable('PATH'),';',
> [sffDontSearchInBasePath]);
> Params:='url.dll,FileProtocolHandler %s';
> end;
This is called by the IDE via OnFindDefaultBrowser. This is not part of the
viewer component itself.
I added that.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives