Re: [gtkmm] on_key_press_event on Gtk::DrawingArea



Thank you Paul, that worked :-)

Helen

On Tue, 2003-03-25 at 13:00, Paul Davis wrote:
> >I seem to be experiencing problems detecting keyboard events on a
> >Gtk::DrawingArea.  The "on_button_press_event" event picks up mouse
> >clicks on the drawing area, but the "on_key_press_event" doesn't appear
> >to detect keyboard events.
> 
> try adding the CAN_FOCUS flag to the widget.
> 
> key press events go the top level window first, then to the current
> focus target. widgets that cannot focus never get key events. 
> 
> --p
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
=====================================================================
Helen Mead                  Software Engineer

OneEighty Software Ltd.     Phone: +44 20 8680 8712
Cygnet House                Fax: +44 20 8680 8453
12-14 Sydenham Road
Croydon                     Email: h mead 180sw com
CR9 2ET
UK

Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act One Eighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act.





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