Re: problem with getting button_press_event on a drawing area
- From: Ainsley Pereira <gtkmm pebble org uk>
- To: gtkmm-list gnome org
- Subject: Re: problem with getting button_press_event on a drawing area
- Date: Sun, 29 May 2005 00:37:08 +0100
On Sat, May 28, 2005 at 07:53:02PM +0000, Yair Hershkovitz wrote:
> hi
>
> this is the related code:
>
> set_flags(get_flags() & Gtk::CAN_FOCUS);
> set_events(Gdk::KEY_PRESS_MASK & Gdk::EXPOSURE_MASK & Gdk::BUTTON_PRESS_MASK
> & Gdk::BUTTON_RELEASE_MASK & Gdk::POINTER_MOTION_MASK);
> signal_button_press_event().connect(sigc::mem_fun(*this,&Canvas::on_button_press_event));
>
> but i dont catch the event
You should use |, not &.
~Ainsley
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]