[lazarus] Silly code message handling question

Tony Maro tony at maro.net
Sun Nov 23 02:32:30 EST 2003




> -----Original Message-----
> From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de] 
> 
> On Mon, 10 Nov 2003 19:00:20 -0600  Tony Maro <tony at maro.net> wrote:
> 
> > Mattias Gaertner wrote:
> > 
> > >>How can I only make use of the keys that I want, and pass the 
> > >>remaining
> > >>on to the parent component(s)?
> > >>
> > >1. You can override DoKeyUp instead.
> > >2. Did you add an 'inherited'?  
> > >
> > 
> > 1) - When I try that I get "There is no method in an 
> ancester class to
> > be overridden".  (it's not virtual...?)
> 
> Sorry. I ment KeyDown, KeyUp and KeyPress.
> To mark the "key" as used, set it to VK_UNKNOWN. 
> 
> What do you mean with "on to the parent component(s)"?

Meaning, if my custom control doesn't handle it the form gets a chance
and the app finally.  My real problem is that menu hotkeys don't
function if my custom controls have focus and grab the key message.

I'll try to override the KeyPress and see what happens.  Thanks.

-Tony






More information about the Lazarus mailing list