Hi,
My app shows only the container(control) which draws something(eg. some lines) periodically. In HandleForegroundEvent(), if the app gets in background I stop the drawing process so that to save processor power.
When in the foreground the app draws its stuff ok. The problem comes if the keypad is locked automatically, eg. when the slider is closed.
The app gets a notification it is no more in foreground and does stop drawing.(so it seems the keylocker has a front window). But my main screen is still visible so I dont want to stop drawing in this situation , when the keypad is locked. The app is a simple one-main-container on the stack which draws in full screen. (not view).
So, my question, how do I detect that my container/application has no focus but it is still visible ?
CCoeContainer::IsVisible returns what MakeVisible has set, eg. ETrue. so, even the app is in background it retuns ETrue.
IsFocused also is useless. If the keypad is locked IsFocused returns EFalse, which is ok, but the control is still visible on screen.
thank you
tek

Reply With Quote

