brosnan wrote:
> is there a way to call the callback if the item is pushed instead of when it 
> is released?

        You could invoke a function from the handle() method's FL_PUSH event.
        Not really a callback so much as a function call, but sure, you can do 
that.

        I believe the reason your Fl_Browser::callback() gets called on release
        is so that you can drag out a selection without getting a callback at
        the wrong time (when you start it).. it's better to get the callback
        after the selection has been dragged out, on release.

        Also, the nice thing about callbacks on release is that eg. with buttons
        if the user clicks, then changes their mind, they can drag off the 
widget
        and not trigger the button.
        
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to