Re: Catching mouse click in a DrawingArea




Either call Gtk::Widget::add_events, or put the drawing area in an EventBox. Then you can override the on_button_press or connect a signal to the button press event.

Aurélien KAMEL wrote:

Hello,

I would like to know how can I catch a mouse click event in a DrawingArea and how can I know the coordinate of this click.
Anybody knows if it's possible and how ?

Thanks,
Aurélien

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




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