On Sun, 21 May 2006 09:54:15 +0200
Borut Maricic <[EMAIL PROTECTED]> 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.

Wow. I added that yesterday and didn't announce it yet. And now there is
already a request for improvement. Are you sure, you are a bloody newbie? ;)

 
> 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.

On the other platforms there are better ways to find the default browser as
well.
Maybe we should create a unit for that. It could be useful to other programs
as well.

 
> 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.
> 
> BTW, it also seems that a call to
> SysUtils.GetEnvironmentVariable('any sysvar name here') is
> always returning an empty string. Can that be or am I making
> a fool of myself here?

Windows has environment variables as well. But I didn't test that, so maybe
it is broken at the moment?

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to