[Lazarus] IFDEF for both Windows and WinCE

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Nov 12 07:58:53 CET 2009


By rights, on OS X the help should probably open in the OS X Help Viewer, not in lhelp or a browser. I believe Help Viewer can display most HTML. A quick and dirty way to use it is:

{$IFDEF DARWIN} 
Shell('Open -a "Help Viewer" "' + HelpFile + '"');
{$ENDIF}

Thinking ahead, what it you wanted to put some level of interactivity or animation in parts of the help? A full browser would help out there.

Thanks.

-Phil

________________________________________
From: Vincent Snijders [vsnijders at vodafonevast.nl]
Sent: Wednesday, November 11, 2009 3:34 PM
To: Lazarus mailing list
Subject: Re: [Lazarus] Gecko on lazarus

Marco van de Voort schreef:
> On Wed, Nov 11, 2009 at 02:52:46PM +0100, Vincent Snijders wrote:
>> If the internal (pascal) renderer is good enough, nobody will use the external Gecko
>> renderer. OTOH, some people want to trade speed and resources for a better rendering
>> in some cases.
>
> I think the internal renderer should and could be perfect (read fast,without
> any serious layout problems) for the own generated docs, because they are
> simple and we control both sides.
>
> Then there could be  an override option to open topics external CHMs with a full browser.
>

Yes, that might be useful. A lot of bug reports come from people
throwing any chm file against lhelp assuming it will open any chm file,
not just the lazarus help files. For those people, an escape route to
Gecko could be offered.

>> You can compare it (a bit) with the internal and external (gnu ld) linker in the
>> windows compiler. Nobody uses the external linker on windows, except if you think
>> there is a bug in the internal linker (or are using the external assembler for
>> debugging purposes).
>
> Good analogy. Though I shouldn't need to install such a browser (or even
> configure it) if I don't want to use it. It should be totally optional.

Same for ld, everything works fine without, it is an option.

Vincent

--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list