PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Minimize / Restore application

MetsDuManche · 30 Jul 2007, 15:15 UTC
Hello,

I have a problem with my application that is always on screen, and do not minimize while focus is lost (even when config->focusminimize = true;).
When the phone lights off (after no use for a while for instance), I have to light it on. Then it asks me a password, but I can't access this screen, because the application is on top, and I have to reset :-(

How can I minimize the application ? How can I have it minimizing automatically while focus is lost ?

Thanks for your help.
Hi,

Unfortunately, your application doesn't seem to receive an event that the focus is lost. Perhaps it sends another event to your Pocket PC when it powers down.

To handle native window event you can add the OnMessage (http://www.edgelib.com/index.php?node=1017) callback to your framework class and check for window messages. Would you like to log the parameters of this function in a text file to see if you receive an event when the device powers off?