Re: problem with getting button_press_event on a drawing area



On Saturday 28 May 2005 20:53, 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));

(Gdk::KEY_PRESS_MASK & Gdk::EXPOSURE_MASK & Gdk::BUTTON_PRESS_MASK
 & Gdk::BUTTON_RELEASE_MASK & Gdk::POINTER_MOTION_MASK)

will give zero.  Presumably you meant bitwise or?

Chris

-- 
Summer is y-cumen in, lhude sing, cuccu!
Groweth sed and bloweth med, springeth the wude nu.



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