El 23/03/14 19:06, Graeme Geldenhuys ha escrit:
> On 2014-03-22 19:35, Luca Olivetti wrote:
>> You just have to create a class derived from THelmManager (in unit
>> HelpIntfs).
> 
> 
> Thanks for that info.
> 
> 
> On a side note:
> I see the Lazarus team still didn't update the OnHelp event - which uses
> the event signature written for Windows 3.1 help viewers (also showing
> Delphi's ancestry). I have suggested in the past they take up the Kylix
> 3 OnHelp signature (shown below) which makes a lot more sense for
> cross-platform, newer or custom written help systems.
> 
> type
>  THelpEvent = function (HelpType: THelpType; HelpContext: Integer;
> HelpKeyword: string; HelpFile: string; var Handled: Boolean): Boolean of
> object;

While that is true for the OnHelp event, by subclassing THelpManager you
can bypass it and actually query by keyword or context.
Not as straightforward but it's possible.

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

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

Reply via email to