From 4d2d3cf76d630cffbf2dc674308692a9c0b6e6cf Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 9 Jul 2023 12:59:54 +0200 Subject: [PATCH] Documentation: explain how to refresh GUI while printing --- FL/Fl_Printer.H | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index b65fa3085..cfbab43c8 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -57,6 +57,16 @@ } delete printer; \endcode +

Recommend method to refresh GUI while printing : + \code + printer->begin_job(0); + …… + Fl_Surface_Device::push_current(Fl_Display_Device::display_device()); + Fl::check(); // or any operation that draws to display + Fl_Surface_Device::pop_current(); + …… + printer->end_job(); + \endcode Platform specifics