Re: problem with motion_event on image
- From: oedipus <alexander arnoldt gmx de>
- To: gtkmm-list gnome org
- Subject: Re: problem with motion_event on image
- Date: Fri, 20 Oct 2006 04:05:11 -0700 (PDT)
I had forgotten the Gdk::POINTER_MOTION_MASK. I included it, but still it
will not do?
Here is some of my code, to see the initialisation:
image1->signal_expose_event().connect(SigC::slot(*this,&main_window_glade::on_image1_expose_event),
false);
image1->signal_motion_notify_event().connect(SigC::slot(*this,&main_window_glade::on_image1_motion_notify_event),
false);
main_window->signal_delete_event().connect(SigC::slot(*this,&main_window_glade::quit),
false);
image1 -> add_events(Gdk::POINTER_MOTION_MASK);
and the signal:
bool main_window::on_image1_motion_notify_event(GdkEventMotion *ev)
{
label1 -> set_text("event is there");
return 0;
} // i have that reduced to a minumum first
Thanks for the help
--
View this message in context: http://www.nabble.com/problem-with-motion_event-on-image-tf2478866.html#a6914281
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]