On 10/19/11 08:18, David wrote:
> Essentually converting a framework that has an event loop (like an fltk wait 
> loop)
> from which can you can query the widgets if clicked, if doubleclicked, if 
> changed,
> if checked, etc..

        You can get the number of clicks with Fl::event_clicks()
        and reset it with Fl::event_clicks(0);

        You can make your own event loop (instead of calling Fl::run())
        by doing:

while ( Fl::wait() ) {
    ..
}

        Probably the test/keyboard.cxx application is perhaps similar
        to what you want in how it handles widgets inside the event
        loop code, as well as with callbacks, and you can put
        Fl::event_clicks(0) within the wait() loop/callback/handle()
        using whatever logic you want, I'd imagine.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to