[lazarus] Silly code message handling question

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 10 14:42:04 EST 2003


On Mon, 10 Nov 2003 12:47:54 -0600
Tony Maro <tony at maro.net> wrote:

> I'm handling a:
> 
> procedure WMKeyUp(var Message: TLMKeyUp); message LM_KEYUP;
> 
> How can I only make use of the keys that I want, and pass the remaining 
> on to the parent component(s)?
> 
> I just want to grab arrows, without interfering with menu keyboard 
> shortcuts.
> 
> Currently I have the following within the procedure:
> 
> if Message.CharCode = VK_UP then begin
>    ... do my stuff ...
>     exit;
> end;
> 
> Which works great for handling the VK_UP, but it's not passing on the 
> ones I don't handle.

1. You can override DoKeyUp instead.
2. Did you add an 'inherited'? 


Mattias






More information about the Lazarus mailing list