[lazarus] Context sensitive help

Tony Maro tony at maro.net
Sun Apr 20 12:15:51 EDT 2003


Tony Maro wrote:

> It generates the form event first.  Your description of what the event 
> is supposed to do is generate the event only if nothing else has 
> processed it.  In order to process at the control and fallback to the 
> form if not processed, I think it would make sense to ask the focused 
> control first, then the form, unless the form.keypreview is set?
>
> Also, can we publish keypreview?

Am I the only one who carries on conversations with himself? ;-)

Okay I see what's going on now.  KeyPreview just plain doesn't affect 
things.  The form always gets keypresses (and fires it's OnKeyDown 
event) before the controls on the form, regardless of the KeyPreview state.

-Tony






More information about the Lazarus mailing list