[EMAIL PROTECTED] wrote:
>> matthiasm wrote:
>>
>>> Do you think you can minimize your code to a single
>>> page or so that I can compile and run on my machine?
>> Thanks for your help.
>> Here's the code extremely minimized.
>> [..]
>> Anyway, I'd like to know how to completely skip the right mouse
>> button events in order it doesn't disturb the stream of the other events.
> 
> I'm sorry to ask but have you found a solution for that issue ?
> Do you think this pb can be solved ?

    I think I understand the problem as being: if you left-click
    and drag the box around, during the dragging you quickly click/release
    the right button (all the while holding the left button down and dragging)
    when the right button is released, all drag events stop.

    I'm not sure what causes this.. possibly FLTK doesn't keep track
    of its internal FL_DRAG flag for each of the buttons independently.

    It /seems/ like the release of the right button that causes the FL_RELEASE
    cancels the stream of FL_DRAG events that /should/ still be
    delivered because the left button (which initiated the drag)
    is still being held down.

    At first I thought maybe your handle() code needs to be careful
    to return 0 for the FL_RELEASE for the right mouse event,
    but that didn't seem to solve it. (I expected it would).

    Maybe Matthias can answer this one.
    Might be a bug.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to