Just a thought, but have you tried action lists - having an action and
assigning the F1 key to its shortcut property. I have no idea if that will
work, its what I do to get F1 help throughout my app.
Anyway just a thought,
Nahum.
> -----Original Message-----
> From: Peter Hyde [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 17:06 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: keypreview and trapping F1
>
>
> Hi there,
> 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).
>
> The form's KeyPreview property is set to true and a FormKeyDown
> event is defined -- however, the latter event is NOT called for F1,
> even though it is called for other keys like Alt, Shift, "S" or
> whatever.
>
> I've not had this problem before -- can anyone suggest what I've got
> amiss? Something obvious, no doubt...
>
>
> cheers,
> peter
>
> ============================================
> Peter Hyde, WebCentre Ltd & SPIS Ltd, Christchurch, New Zealand
> * Web automation for online periodicals: http://TurboPress.com
> * TurboNote+: http://TurboPress.com/tbnote.htm
> -- handy onscreen notes and instant messaging
> --------------------------------------------------------------
> -------------
> 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"
>
---------------------------------------------------------------------------
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"