Hi all,
I am facing issue in Idle Event. I have created a GUI with provides many functions like memory profiling, tracing etc., I am using Idle events for changing state of the GUI control.Idle events doesn't get generated when the GUI is minimized. Kindly Help.
~ Johnnie
No Idle events when GUI is minimized
No Idle events when GUI is minimized
--johnniealan --
Re: No Idle events when GUI is minimized
This the way wxW behaves. Personally I can't say it is a feature or a limitation.
You can try this:
- handle wxIconizeEvent (only available for the wxMSW, wxGTK ports though), start a timer with a reasonable time interval when the window is minimized, stop the timer and rely again on idle events when the window is restored (and maybe maximized too, if it can be directly maximized from minimized state);
- in the timer event handler do whatever you do in the idle event handler.
You can try this:
- handle wxIconizeEvent (only available for the wxMSW, wxGTK ports though), start a timer with a reasonable time interval when the window is minimized, stop the timer and rely again on idle events when the window is restored (and maybe maximized too, if it can be directly maximized from minimized state);
- in the timer event handler do whatever you do in the idle event handler.
Re: No Idle events when GUI is minimized
Well you say in idle events you change the state of the GUI controls; when the application isjohnnie wrote:Hi all,
I am facing issue in Idle Event. I have created a GUI with provides many functions like memory profiling, tracing etc., I am using Idle events for changing state of the GUI control.Idle events doesn't get generated when the GUI is minimized. Kindly Help.
~ Johnnie
minimized, however, GUI controls are not visible. So if the only thing you are doing is updating GUI controls I don't see the problem with that stopping when your app is minimized
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows