[lazarus] Context sensitive help

Marc Weustink marc at dommelstein.net
Fri Apr 11 15:44:26 EDT 2003


At 12:32 11-4-2003 +0200, Mattias Gaertner wrote:
>On 10 Apr 2003 19:43:43 -0500
>Tony Maro <tony at maro.net> wrote:
>
> > Under Delphi, wasn't there a "helpid" property or something like it that
> > was used for the context sensitive help system?
> >
> > Is it possible to add this property to the TControl object (or wherever
> > it's more appropriate?)
> >
> > I'm working on an HTML context sensitive help system and my idea is for
> > a TComponent that you drop on a form that will watch keystrokes for F1.
> > It would then see what control had focus and check it's help id
> > property.  Then it maps that help id property to a list of html files
> > provided at design time, locates a proper browser on the computer and
> > opens the html document with it.
> >
> > The only thing I'm not sure of is how to grab the keystrokes with a
> > message before any other control grabs it.
>
>I think, an application wide KeyDown event would be very useful. Not only
>for a helpsystem. I have added a handler chain to Application.
>Just add your keydown event with:
>
>Application.AddOnKeyDownHandler(@AppKeyDown);
>
>This keydown is invoked, if no other component used the key
>(Key<>VK_Unknown).

Hmm.. Looks like  the TApplication.OnMessagehandler ?
There you can catch all events if you want.

MArc







More information about the Lazarus mailing list