problem with getting button_press_event on a drawing area



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

yair



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