"please wait" window
-
Hi all, I need do open a "please wait" window in order to keep blocked my MFC application (i mean that the user can do nothing) until a time-expensive routine ends. Then i need to close this "please wait" window. I need a modal dialog i suppose. How can i do that ? Should i launch the time-expensive routine from the modal dialog ? Thanx in advance, Desmo16.
-
Hi all, I need do open a "please wait" window in order to keep blocked my MFC application (i mean that the user can do nothing) until a time-expensive routine ends. Then i need to close this "please wait" window. I need a modal dialog i suppose. How can i do that ? Should i launch the time-expensive routine from the modal dialog ? Thanx in advance, Desmo16.
All you need to do is create a new dialog window, open it before runnning your expensive routine and close it after. In my opinion, having a "please wait" and forcing your user to sit there twiddling there thumbs is bad programming. Why not use a thread instead?
-
All you need to do is create a new dialog window, open it before runnning your expensive routine and close it after. In my opinion, having a "please wait" and forcing your user to sit there twiddling there thumbs is bad programming. Why not use a thread instead?
yes and no, if you create a Modal dialog, your long task will not be done unless you make it part of the dialog itself.
waldermort wrote:
and forcing your user to sit there twiddling there thumbs is bad programming. Why not use a thread instead?
There are some tasks in some software that will ALWAYS make a user wait, whether it's in a different thread or not.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
All you need to do is create a new dialog window, open it before runnning your expensive routine and close it after. In my opinion, having a "please wait" and forcing your user to sit there twiddling there thumbs is bad programming. Why not use a thread instead?
Because the user knows he has to wait so long and he wants the results that can be shown only AFTER the computation in the routine. ( The routine i'm talkin' about is a multi-objective genetic algorithm that finds a pareto-front of solution after searching the causative bodies of seismic/volcanic effetcs)
-
Because the user knows he has to wait so long and he wants the results that can be shown only AFTER the computation in the routine. ( The routine i'm talkin' about is a multi-objective genetic algorithm that finds a pareto-front of solution after searching the causative bodies of seismic/volcanic effetcs)
Desmo16 wrote:
The routine i'm talkin' about is a multi-objective genetic algorithm that finds a pareto-front of solution after searching the causative bodies of seismic/volcanic effetcs
:omg: Ohhh this is gonna be my new sig... :cool:
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
Hi all, I need do open a "please wait" window in order to keep blocked my MFC application (i mean that the user can do nothing) until a time-expensive routine ends. Then i need to close this "please wait" window. I need a modal dialog i suppose. How can i do that ? Should i launch the time-expensive routine from the modal dialog ? Thanx in advance, Desmo16.
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Hi all, I need do open a "please wait" window in order to keep blocked my MFC application (i mean that the user can do nothing) until a time-expensive routine ends. Then i need to close this "please wait" window. I need a modal dialog i suppose. How can i do that ? Should i launch the time-expensive routine from the modal dialog ? Thanx in advance, Desmo16.
I think you can see an example on http://www.codersource.net/ about this object but i cant remember its name.
WhiteSky