Re: Geting an drawing area to recieve key events



> >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.

Best Regards,
Norman Black
Stony Brook Software





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]