[Q]: EventBox and key_press_event
- From: Preben Randhol <randhol pvv org>
- To: gtk-list redhat com
- Subject: [Q]: EventBox and key_press_event
- Date: 20 Aug 1999 10:28:24 +0200
How do one get the EventBox to register key_press_events?
I tried the EventBox example in the GTK+ tutorial, and it worked. There
the Eventbox registers button_press_event. I changed the code so that
the it should register key_press_event instead of button_press_event,
but this doesn't work. The callback is not called when I press a key.
Is it possible to get this to work? How? The reason I'm asking is that
I have a widget that needs to registers keys like PG_down and Up so
that I can get it to scroll.
Any help much appreciated.
--
Preben Randhol oO "Don't think about domination, think
[randhol@pvv.org] .` ; about freedom, it doesn't dominate."
[www.pvv.org/~randhol/] \ G -- RMS, LinuxWorld 1999.
`_) n o m e
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]