Peter Hyde asked:
> In a D5 project I'm not finding it possible to trap the F1 key to give
> context-sensitive help. Instead, it is always going to the form's
> HelpContext. (I need to vary the help context according to which
> tab of a PageControl is active).
F1 is very special in its handling. Delphi translates the F1 into a WM_HELP
message that is cascaded up from the active control through its parents
until a handler is found. I'd recommend looking into handling WM_HELP rather
than trying to subvert the normal F1 mechanisms that Windows and Delphi
provide.
Cheers, Max.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"