Hi,
I want to use a ProgressDialog to show the progress of a file download and
database update.
The progress works well, however the ProgressDialog window is very
unresponsive because the program uses a single thread.
Is it possible to use POE::Loop::Wx for making the dialog window more
responsive?
Or is there another better method for doing this?
In the POE::Loop::Wx examples I've seen that it can be used for making
asynchronious requests, but those requests were made automaticly, after a
certain number of seconds which were defined in the POE::Session. The
requests that were made at a certain command (a button click) were made in
the main thread of the program.
I need to run the subroutine that does the ProgressDialog update with some
parameters and only after a certain part of the file was downloaded or a
certain number of records were inserted in the database.
Please tell me if I can find an example of using a progress bar that uses a
separate thread for doing this.
Or if it is better to use the main thread for update the ProgressDialog and
a second thread for doing the file download and database update, please give
me some hints about how to do that with POE::Loop::Wx or another method that
can allow the 2 threads to communicate.
Thank you.
Octavian