I saw somewhere in my tutorial, such a function that the interface does not hang during long calculations. It was written there that it should be inserted somewhere in the middle of the calculations. The tutorial is not small (670 p.) And I can not find this function !!! Not sure what the feature is?
1 answer
The easiest crutch is
Application.ProcessMessages; This function skips the entire queue of system messages received by the application.
In a more complex, but more productive version, the computational operations are carried out in a separate stream (the native class TThread), and the intermediate results are sent to the main stream through asynchronous methods.
- That's exactly what I saw !!! Thank! - delphikettle
|