> My program has a text_display and a run button with a > callback. Here's what I'm trying to do: > > //This is all written within the run button's callback (could > that be the problem?)
Yes. It is the problem - the fltk redisplay of the screen can not happen whilst fltk is servicing the callback. There are a couple of ways out of this: - If you *must* do everything in the callback (and I think that is a bad way to go) then you might get the desired result by repeatedly calling Fl::flush()... But that will not work if you are waiting on some external system command. - Use Fl::add_fd and popen to run your command and capture the output that way (see http://www.seriss.com/people/erco/fltk/#add_fd for a worked example). - read up on Fl::add_timeout(...) and use that to poll for output. 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

