On 20 Oct 2007, at 18:00, tom wrote: > Ideally, I'd like the button to ignore subsequent clicks while the > function is still being computed. > > Any ideas how I might accomplish this?
The usual thing to do is to deactivate your button when you start your long calc, and then re-activate it once the calc completes. Alternately, you can just set a flag in the button, that never gets cleared until the calc completes, so that you can "shrug off" any additional clicks easily... -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

