[Lazarus] problem opening html help pages with spaces in path

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Sep 14 17:23:50 CEST 2010


On Tue, 14 Sep 2010 16:12:37 +0200
Bart <bartjunk64 at gmail.com> wrote:

> Replace spaces with %20 ?

Is there already a function for this that can be used in the LCL?

Mattias

> 
> Bart
> 
> On 9/14/10, Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:
> > I added to my application:
> >      helpBrowser: THTMLBrowserHelpViewer;
> >      helpDB: THTMLHelpDatabase;
> >
> > Then I set the properties:
> >    helpDB.BaseURL:= 'file://help/';
> >    helpDB.KeywordPrefix:= 'HELP/';
> >    HelpKeyword:= 'HELP/index.html';
> >
> > Actually it works except when the html help pages are on a path
> > including spaces.
> > For example if my application is in: d:\myapp\
> > and the help is in: d:\myapp\help\index.html
> > it works correctly
> >
> > But if in the path there are spaces like: d:\my app\help\index.html
> > The html page is not shown correctly, for example firefox open two tabs:
> > file:///D:/my
> > and a second tab
> > app\help\index.html
> >
> > The same happens calling:
> >    ShowHelpOrErrorForKeyword('','HELP/page.htm');
> >
> > what I have to do?
> > regards,
> > andrae
> >
> > --
> > _______________________________________________
> > Lazarus mailing list
> > Lazarus at lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> >
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list