How to repaint widgets during a long computation in a non-threaded application?

During your long calculation, periodically dip into the event loop, while blocking all user-generated events; the event loop should just process repaint and resize events, basically. You can use runModalWhileEvents(NULL), which will block all user-input events, and returns when the event queue has been drained. You may have to call this periodically since some types of events can generate more events.

In FOX 1.7 this function has an extra parameter which controls the amount of time getNextEvent() waits for events to appear; in 1.7, a call to: runModalWhileEvents(NULL,waittime) will therefore return waittime nanoseconds after receiving the last event from the queue. This is more convenient than the old function, since after returning you can be ensured you've processed the entire batch of events and the system has been brought in sync again. More.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions