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

Mouse Motion



I'm having a devil of a time getting mouse motion to work with my drawing area
widget. I've followed the scribble example to the best of my ability. That is,
I've:

1) connected my signal function to the drawing area widget
2) ensured that those events are masked properly
3) written a mouse motion callback that prints out a line

What happens is, my callback only seems to be called when the pointer first
enters my widget. It doesn't get called repeatedly as I move the pointer around.

Now, I have a timeout callback being called 30 times per second. I'm not sure if
that interferes with the mouse motion (I can't see why), but I can see how that
might make it appear that I only get them when first entering the widget (like,
if they are cut off by the timeout?).

Any ideas? I'd like to do lasso selection, dragging, autoscrolling, etc. Not too
hard, but difficult when you can't get motion notify events!

-- 
SEGV    http://www.cgocable.net/~mlepage/



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