Re: Geting an drawing area to recieve key events
- From: Nuno Afonso <hunchback netcabo pt>
- To: Norman Black <stonybrk ix netcom com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Geting an drawing area to recieve key events
- Date: 13 Dec 2001 14:12:13 +0000
On Wed, 2001-12-12 at 00:53, Norman Black wrote:
> > >does anyone know how to make an drawing area to recieve the key events?
> >
> > gtk_widget_set_events(area, GDK_KEY_PRESS_MASK|GDK_KEY_RELEASE_MASK)
>
> You also need to make sure it has the GTK_CAN_FOCUS flags.
i tried this but it didn't work, the parent widget is the one that gets
the keyboard inputs.
Nuno Afonso
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]