Re: autoscrolling via leave_notify



Paul Davis <pbd op net> writes:
> i want to get a scrolled window to scroll when i drag off its edges. i
> can do that pretty easily when i just move the mouse off the sides of
> the window by catching leave_notify events.
> 
> however, if there was a button press event, and i performed a grab on
> pointer motion/button release events (very common in my case), then my
> widget doesn't receive leave events for the window until the grab
> finishes. this is, uhm, unfortunate.
> 
> any clues on how to make this work? i have a feeling that the CList
> might do this, so i'll check its code, but any other ideas are more
> than welcome.

What the text widget, clist, etc. do is simply look at motion notify,
and check whether the coordinates are outside the widget.

Havoc




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