In my program sometimes I need to show a message to the User, that he now has to wait, until certain jobs have been finished, before he can proceed.
On one side, I need something like a non modal Form, because:
- a modal Form would stop the execution of that jobs
- and I need a loop, which repeatedly checks, whether all jobs have been finished, and if yes, this message should be closed (by code) and the user can proceed.
On the other side, I need something like a modal Form, because I want to prevent, that the user can operate any GUI-Controls of all currently open Forms, as long as this message is displayed. Without a modal Form it would be very laborious, do deactivate all these GUI-Controls one by one and to reactivate all again later to their formerly state. Or I would need another way to prevent the Form with the message loosing it's focus to another Form of my program (but switching to another program should be allowed).
Multitasking is not an option, because these jobs, which the user has to wait for, do a lot of output to several GUI-Controls (and adding multitasking to this bigger and complex project would be much to laborious and very dangerous).
A solution should work on Windows and Linux and with Lazarus 2.0.10, because it is an older project. Thanks in advance.