Re: Geting an drawing area to recieve key events



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]