Problem with a Progress bar
But not inside the thread! The thread cannot use WindowEvent() to receive events from windows that were not created by it.Fred wrote:You can try to flush the events with "while windowevent() : wend"
In my current project, the main program creates a window and receives the WindowEvents. The thread updates the progressbar periodically with the method I described above.
The main thread, however (and that is the trick), does not use WaitWindowEvent(), but WaitWindowEvent(200), so even if there is no incoming event, the timeout will cause the program to update the progressbar.
Understand?
Happy coding, AND51
PB 4.30
Code: Select all
onErrorGoto(?Fred)

