Re: [gtkmm] motion notify troubles
- From: Ainsley Pereira <gtkmm pebble org uk>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] motion notify troubles
- Date: Thu, 14 Nov 2002 20:05:29 GMT
In message <1037292750 1690 15 camel localhost localdomain>
Eric Newman <enewman ati com> wittered:
> I'm having trouble getting motion notify events to be recognized in a
> Gtk::DrawingArea. It seems like it is only being notified when I enter
> the DrawingArea, and then the event is a pointer motion hint. Nothing is
> received when I move around in the DrawingArea. Here's some relevant
> code:
You need to call add_events(Gtk::POINTER_MOTION_MASK) in your constructor to
make sure you get the motion event. (I think that's the one you need - there
are other ones for BUTTON_MOTION_MASK etc).
See:
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Widget.html#a50
I hope this helps,
a.
--
----------------------------------------------------------
/ Ainsley 'Marble' Pereira / http://www.snowplains.org /
/ Don't drink and drive.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]