Re: drawingarea on a dialog can't receive button_press signal



You have to use Gtk::Widget::add_events in order to process these
signals. For example:

add_events (Gdk::ENTER_NOTIFY_MASK |
Gdk::EXPOSURE_MASK |
Gdk::POINTER_MOTION_MASK |
Gdk::POINTER_MOTION_HINT_MASK |
Gdk::BUTTON_PRESS_MASK |
Gdk::BUTTON_RELEASE_MASK |
Gdk::KEY_PRESS_MASK |
Gdk::KEY_RELEASE_MASK |
Gdk::FOCUS_CHANGE_MASK);


Il giorno gio, 29/01/2009 alle 13.45 +0800, breadbread1984 ha scritto:
> I find that a drawing area on a dialog can't process signal
> button_press, button_release and motion_notify which is necessary for
> my application. Is there any solution to this problem?
> 
> 
> 
> 
> ______________________________________________________________________
> 网易邮箱,中国第一大电子邮件服务商
> _______________________________________________
> 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]