> My callback takes a long time. My callback grabs many images then > pastes those images onto multiple widgets. I want to show the widgets > during the callback as each image is set, not all at once at the end. > I wrote a similar example to illustrate my problem below. How can I > reveal the input BEFORE the 2 sec sleep?
Copious use of Fl:check() or Fl:flush() should help. Although to be honest (unhelpful observation coming up) it would really be better not to do the time-consuming work in the callback. Better to have the callback trigger the calculation and return directly. I usually do this via threads, but I know a lot of folk don't like that as a solution... SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

