Re: problem with getting button_press_event on a drawing area



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]