> void txt_code_cb( Fl_Widget *o, void* )
> {
>   out_logs->value("Msn One .....");
>   //out_logs->redraw();
>   sleep(1);
>   out_logs->value("Msn Two .....");
>   sleep(1);
>   out_logs->value("Msn Three .....");
> }

This really isn't the way to do this - you can't properly update a
widget whilst you are in a callback, since the display update processing
waits untill all your callbacks return, to minimise redrawing, but your
callback does not return, and you have built in hard coded (and
non-portable, I notice) delays inside your callback.

You might be able to trick it into working by calling Fl::check();
before each sleep() call, but that would constitute a nasty hack.

Rather, you should use your callback to start a timeout (see
Fl::add_timeout) and have the timeout update the output widget each time
it "ticks". Your timeout would of course expire itself after the last
screen was shown.




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

Reply via email to