app window detect whether it is in the background in FMX Delphi Windows and Macintosh

  

My Delphi 11 FMX project has multiple document windows.
How can I detect in code whether or not the window is in the background? (Windows and Macintosh)

Comments are closed.