> This is a multi-part message in MIME format. > --------------050400070709060509090209 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > I've found why my example was behaving strange when trying print on both > "Printer" and "PSFile", inside function "start_job" the "Fl_Device > *current" is set and all following print commands goes to the last > device set. > > As well I was setting one of the box labels via a temporary stl::string > returned by an stl::stringstream: > > before: sales_invoice->invoicePageBox->label(ss_page.str().c_str()); > > now: sales_invoice->invoicePageBox->copy_label(ss_page.str().c_str()); > > In the main loop for the printing I'm calling Fl::wait() to just in case > the print job is length, allowing user interaction with the rest of the > program. > > But then I found a possible problem, if there is only one "Fl_Device" > active at any time the rest of the user interface can't be used because: > > - Fl_Device can be switched to display/Screen and all other print > commands goes there. > - Fl_Device isn't switched and any new update to display/screen goes to > printer. > > This solution isn't thread safe !!!!!!!!
It might be better now because of changes introduced with image support. > > Obs.: The postscript generation file doesn't handle UTF-8 chars. > Yep. I would like to know how to do that. But I don't. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
