[lazarus] Context sensitive help

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Apr 11 03:06:30 EDT 2003




On 10 Apr 2003, Tony Maro wrote:

> Under Delphi, wasn't there a "helpid" property or something like it that
> was used for the context sensitive help system?

HelpContext, at the level of TWinControl.


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

This should be standard behaviour of the TWinControl component, there
should be no need to add a separate control. Your problem of who gets to
see the keystroke first is then solved.

Michael.






More information about the Lazarus mailing list