Detect App When Minimized

BlitzMax Forums/BlitzMax Programming/Detect App When Minimized

Tachyon(Posted 2010) [#1]
I did a bunch of searches and could not find an answer on this, though I am very surprised this has not been covered before:

Is there a cross-platform way of detecting when an app is minimized? I would like to pause the game, including all sound, when the player minimizes it (for example, Alt-Tab from full-screen mode). I just need to figure out how to detect when the application is minimized.

Of course, the solution needs to be cross platform (and not handled through MaxGUI) for it to be of any use to me. Any suggestions?


plash(Posted 2010) [#2]
I think AppSuspend might work for that.


Tachyon(Posted 2010) [#3]
Thanks.

Quite obvious once I found this nestled away in the documentation.