That may work, thanks Corey.  I thought about it a bit more and decided to
take the HelpContext property off the form which uses F1, and alter the Help
menu command to specify the helpcontext number directly.  This has solved
it.

Thanks,
Ross.

----- Original Message ----- 
From: "Corey Murtagh" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 10:37 AM
Subject: Re: [DUG] Compiled HTML Help (CHM)


> Ross Levis wrote:
> > It is this line that is activating with any F1 key combinations:
> >   else // Any other command -> display table of contents
> >     HtmlHelp(Application.MainForm.Handle, PChar(Application.HelpFile),
> > HH_DISPLAY_TOC, 0)
> > So, what I need is to somehow check if the current form has an F1
> > combination shortcut, and if so, disable this line from executing.  Is
> > this possible?
>
> A possible work-around is to use actions to handle the shortcut keys.
> I've found that actions tend to get keys before anything else, so you
> can use them to intercept keys that would otherwise be processed by
> controls and so forth.

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to