What equal Form.BorderStyle?
The value of Form1.BorderStyle = 'bsSizeable'.
Do you want me to use Threads? I never worked with this and I think this effort would be too much for me.
No.
In Windows, there is only a single thread connected to the input. It is allowed to do SetFocus for it. You can force the thread of your window (MainThreadID) to be connected to the thread of the active window (possibly someone else's application).
Thank you for this idea, but this is complete new to me and I think this effort will be higher then I want to invest. And probably it won't work this way on Linux.
Meanwhile I tested my program on Windows and there I do *not* have the disadvantages described in my 1st post. So the problem is - as so often - only on Linux.
Thanks
KodeZwerg for your new demo. I already have procedures to show a Form only for a certain time. But that is not what I need in this case. Because I don't know, whether the User is always sitting in front of the screen and always looking to it. He might go to catch some coffee etc. and when he comes back, he must see my Form, until he presses a button to hide the Form.