>
> On 26.06.2008, at 23:32, Adam wrote:
>
> > Hi. When I copy file in program fltk is stopped. Progressbar stay in
> > 0. Why GUI don't respond(answer?)?
>
> Hi Adam,
>
> FLTK is event based. Events are needed to tell FLTK when to redraw
> your dialog box. You will not receive any events until you return from
> your copy routine. To avoid this problem, there is a command to allow
> FLTK to receive events and redraw:
>
> >     while(getline(plik, str))
> >     {
> >             plik2 << str << "\n";
> >             dodaj();
> >             Group1_ProgressBar1->position(Group1_ProgressBar1->position() + 
> > 1);
>                    Fl::flush(); // insert this to have the progress
> bar redraw
>                    Fl::check(); // OR insert this to do a complete
> event handlig ("Cacncel" button, for example
> >
> >     }
>
>
> See also:
>
> <http://www.fltk.org/documentation.php/doc-1.3/Fl.html#Fl.check>
>
> ----
> http://robowerk.com/
>
>

Thanks. Now it's work.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to