Erel, thx for fast reply, but as I understand your suggestion, then the app is only minimised and not closed. I want app to close.
Or did I missunderstand?
If you really want the 'X' to be displayed then it sounds like you need to catch the minimize event and close the app using your code.
However I'm not sure that a minimize event exists, maybe this is something that Erel can implement in his next release?