Is it possible to catch a keyup event in a panel

  • Thread starter Thread starter graeme g
  • Start date Start date
G

graeme g

hi

is it possible to catch a keyup event in a panel? as i don't seem to be
able to do it...

i've even created a message handler for WM_KEYUP in the WndProc
procedure but nothing works :-(

any help appreciated...

thanks
graeme
 
Hi, "graeme g"
is it possible to catch a keyup event in a panel?
as i don't seem to be able to do it...

For a control to recieve KeyUp-Events, it must be
selected/focus'ed.
Panel.CanFocus/CanSelect is false.
So you must forward the event from an other source
which is focusable to your overridden panel if you
really want such things.

I am not very sure about this answer but may
be it drives you a little in a better direction.


ciao Frank
 
Back
Top