Hi all,
I have an application where, in the main window, after 5 seconds of inactivity, display controller and backlight are switched off, then, touching the screen, they are activated again.
I create a timer:
In the timer expired messages I switch off the screen (excuse me for the crude and not readable method, it will be changed after)...
Then, when the screen is touched, the LCD is enabled again and the timer restarted:
Then, pressing a button on the main screen I create a new window with a setting menu and delete the timer because, leaving the main screen, display must not be switched off.
The background window is not deleted but when I leave the setting menu only the new window is deleted and the background window gets visibility.
How do I activate the timer again when the background windows become visible again?
Thanks
I have an application where, in the main window, after 5 seconds of inactivity, display controller and backlight are switched off, then, touching the screen, they are activated again.
I create a timer:
In the timer expired messages I switch off the screen (excuse me for the crude and not readable method, it will be changed after)...
Then, when the screen is touched, the LCD is enabled again and the timer restarted:
Then, pressing a button on the main screen I create a new window with a setting menu and delete the timer because, leaving the main screen, display must not be switched off.
The background window is not deleted but when I leave the setting menu only the new window is deleted and the background window gets visibility.
How do I activate the timer again when the background windows become visible again?
Thanks