About drawing area's keypress event
- From: rings <rings etang com>
- To: gtk-app-devel-list gnome org <gtk-app-devel-list gnome org>
- Subject: About drawing area's keypress event
- Date: Tue, 31 Oct 2000 9:36:19 +0800
Hi:
Many thanks for everybody's advice.Now,I have a question.I use gtk_widget_set_events() to probe a
drawing_area's keypress event,but I cann't get it.However I may get a buttonpress event.My codes is these
below.
//****************************************************************************//
gtk_widget_set_events (GTK_WIDGET(drawing_area), GDK_EXPOSURE_MASK
| GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK
| GDK_BUTTON_RELEASE_MASK |GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK);
gtk_signal_connect (GTK_OBJECT (drawing_area), "key_press_event",
GTK_SIGNAL_FUNC(KeyPrs_CallBack),NULL);
//****************************************************************************//
If I use window(a Gtk's toplevel window) to replace drawing_area,I may get keypress event.How can I get
drawing_area's keypress event?
Thanks!
rings
rings etang com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]